def handle_close(self): self.server.clients.remove(self) self.server.update_idb_client_map() print("[continuum] A client disconnected.") asyncore.dispatcher_with_send.handle_close(self)