Set detached immediately

This commit is contained in:
Mark Qvist 2026-09-29 20:44:42 +02:00
parent 942434b288
commit a714c20043
No known key found for this signature in database

View file

@ -930,11 +930,10 @@ class BackboneClientInterface(Interface):
def detach(self):
self.online = False
self.detached = True
if self.socket != None:
if hasattr(self.socket, "close"):
if callable(self.socket.close):
self.detached = True
try:
if self.socket != None: self.socket.shutdown(socket.SHUT_RDWR)
except Exception as e: