You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
_terminate_client_handlers uses "for" cycle for clients disconnecting:
for client in self.clients:
self._terminate_client_handler(client["handler"])
It executes client_left as finish(), there client is removed form self.clients list. It leads to an index shift and second client in list will be not disconnected.
For example:
_terminate_client_handlers uses "for" cycle for clients disconnecting:
It executes client_left as finish(), there client is removed form self.clients list. It leads to an index shift and second client in list will be not disconnected.
For example:
Result:
before disconnect
Possible fix:
The text was updated successfully, but these errors were encountered: