Commit bd65ec46 authored by Michal 'vorner' Vaner's avatar Michal 'vorner' Vaner
Browse files

[2888] Close socket even on connect error

Even if we fail to connect, close the socket. It is loosely related to
the previous commit, as that one used unsuccessful connection attempts
to discover msgq is not ready yet and the unit tests complained. It
should have no real effect, since the garbage collector would reclaim
the socket after a while anyway.
parent f5f3e572
......@@ -67,7 +67,9 @@ class Session:
except socket.error as se:
raise SessionError(se)
if self._socket:
raise SessionError(se)
def lname(self):
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