mirror of
https://github.com/schollz/croc.git
synced 2024-11-23 23:54:17 +03:00
fix room deletion if room is full
This commit is contained in:
parent
0a0f7a03d7
commit
a96762b942
@ -258,7 +258,6 @@ func (s *server) clientCommunication(port string, c *comm.Comm) (room string, er
|
||||
return
|
||||
}
|
||||
if s.rooms.rooms[room].full {
|
||||
defer s.deleteRoom(room)
|
||||
s.rooms.Unlock()
|
||||
bSend, err = crypt.Encrypt([]byte("room full"), strongKeyForEncryption)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user