catch exception in interface.close
This commit is contained in:
parent
43b770fbf5
commit
d3a9af9e79
@ -243,7 +243,10 @@ class Interface(util.PrintError):
|
|||||||
|
|
||||||
def close(self):
|
def close(self):
|
||||||
if not self.closed_remotely:
|
if not self.closed_remotely:
|
||||||
self.socket.shutdown(socket.SHUT_RDWR)
|
try:
|
||||||
|
self.socket.shutdown(socket.SHUT_RDWR)
|
||||||
|
except socket.error:
|
||||||
|
pass
|
||||||
self.socket.close()
|
self.socket.close()
|
||||||
|
|
||||||
def queue_request(self, *args): # method, params, _id
|
def queue_request(self, *args): # method, params, _id
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user