Commit 27dfd220 authored by Jason Madden's avatar Jason Madden

Make sure the _makefile_refs attribute is available in case an error is raised during connecting.

parent 8c9cf2e2
......@@ -233,6 +233,7 @@ class SSLSocket(socket):
else:
connected = True
self._makefile_refs = 0
self._closed = False
self._sslobj = None
self._connected = connected
......@@ -251,7 +252,6 @@ class SSLSocket(socket):
except socket_error as x:
self.close()
raise x
self._makefile_refs = 0
@property
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment