From a96762b94230bbe6c746ae14b95a4f2637bd8ae6 Mon Sep 17 00:00:00 2001 From: Zack Scholl Date: Sat, 17 Apr 2021 10:44:10 -0700 Subject: [PATCH] fix room deletion if room is full --- src/tcp/tcp.go | 1 - 1 file changed, 1 deletion(-) diff --git a/src/tcp/tcp.go b/src/tcp/tcp.go index cc72c9b5..96b4145f 100644 --- a/src/tcp/tcp.go +++ b/src/tcp/tcp.go @@ -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 {