mirror of
https://github.com/markqvist/Reticulum.git
synced 2025-01-18 16:30:33 +00:00
Improved interface detach on shared instance shutdown
This commit is contained in:
parent
4f4961257c
commit
1709cd929a
@ -202,11 +202,13 @@ class TCPClientInterface(Interface):
|
||||
self.detached = True
|
||||
|
||||
try:
|
||||
if self.socket != None:
|
||||
self.socket.shutdown(socket.SHUT_RDWR)
|
||||
except Exception as e:
|
||||
RNS.log("Error while shutting down socket for "+str(self)+": "+str(e))
|
||||
|
||||
try:
|
||||
if self.socket != None:
|
||||
self.socket.close()
|
||||
except Exception as e:
|
||||
RNS.log("Error while closing socket for "+str(self)+": "+str(e))
|
||||
|
Loading…
Reference in New Issue
Block a user