Currently, when closing the connection as a guest, the server will still attempt to send broadcasts to the guest, as the Room instance never actually removes the guest from its memory. This leads to a bunch of erroneous logging after a guest has left the room.
This fix just ensures that the data is actually cleaned up after a guest leaves (i.e. their connection closes).
Currently, when closing the connection as a guest, the server will still attempt to send broadcasts to the guest, as the
Room
instance never actually removes the guest from its memory. This leads to a bunch of erroneous logging after a guest has left the room.This fix just ensures that the data is actually cleaned up after a guest leaves (i.e. their connection closes).