Also catch socket.error on TLS teardown.

This commit is contained in:
Tony Young 2014-02-04 06:03:10 -05:00
parent e92a981f1a
commit ea83e56f4b
1 changed files with 1 additions and 1 deletions

View File

@ -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