TypeFox / open-collaboration-tools

Open Collaboration Tools: live-sharing solution for Eclipse Theia, VS Code and other editors and IDEs
https://www.open-collab.tools/
MIT License
81 stars 5 forks source link

Clear removed peers from memory #19

Closed msujew closed 2 months ago

msujew commented 2 months ago

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).