Skip trying to close socket with shutdown
Also closes the correct sockets, some refactoring gone awry at some point.
This commit is contained in:
parent
982ef9fca5
commit
ad68acfab9
1 changed files with 1 additions and 3 deletions
|
|
@ -369,9 +369,7 @@ class ClientConnection(threading.Thread):
|
||||||
if not sock:
|
if not sock:
|
||||||
continue
|
continue
|
||||||
try:
|
try:
|
||||||
if not socket_is_closed(self.socket):
|
sock.close()
|
||||||
self.socket.shutdown(socket.SHUT_RDWR)
|
|
||||||
self.socket.close()
|
|
||||||
except:
|
except:
|
||||||
_logger.exception('Got exception when trying to close socket')
|
_logger.exception('Got exception when trying to close socket')
|
||||||
self.stop()
|
self.stop()
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue