fix(backend_server.py): check if client to disconnect has an open socket

This commit is contained in:
2026-03-03 18:54:45 +01:00
parent ec58a5257a
commit 6446fe883c

View File

@@ -168,6 +168,12 @@ class BackendServer:
"""
self.logger.info(f"[-] Disconnecting {client}...")
if client.socket is None:
self.logger.warning(
f"Client {client} has no socket, nothing to disconnect."
)
return
try:
self.selector.unregister(client.socket)
except Exception as e: