A simple fully working websocket-server in Python with no external dependencies
1.13k
stars
380
forks
source link
Finishing of handle() after disconnect_clients_abruptly() leads to executing _client_left_ with None #118
Open
vzarutskiy opened 1 year ago
After executing disconnect_clients_abruptly() self.clients list is cleared.
Sometimes handle() function finished after this in point self.read_next_message():
It lead to execute finish() function with None client. Because handler_to_client() does not find client in self.client list: