mirror of https://github.com/Shizmob/pydle.git
Also catch socket.error on TLS teardown.
This commit is contained in:
parent
e92a981f1a
commit
ea83e56f4b
|
@ -186,7 +186,7 @@ class Connection:
|
|||
# This might give an error if the connection was already closed by the other end.
|
||||
try:
|
||||
self.socket = self.socket.unwrap()
|
||||
except OSError:
|
||||
except (OSError, socket.error):
|
||||
pass
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue