1
1
Fork 0
mirror of https://github.com/schollz/croc.git synced 2025-10-11 05:11:06 +02:00

fix room deletion if room is full

This commit is contained in:
Zack Scholl 2021-04-17 10:44:10 -07:00
parent 0a0f7a03d7
commit a96762b942

View file

@ -258,7 +258,6 @@ func (s *server) clientCommunication(port string, c *comm.Comm) (room string, er
return return
} }
if s.rooms.rooms[room].full { if s.rooms.rooms[room].full {
defer s.deleteRoom(room)
s.rooms.Unlock() s.rooms.Unlock()
bSend, err = crypt.Encrypt([]byte("room full"), strongKeyForEncryption) bSend, err = crypt.Encrypt([]byte("room full"), strongKeyForEncryption)
if err != nil { if err != nil {