Fix DebugSessionConnection.is_client.

This commit is contained in:
Eric Snow 2018-04-11 21:11:42 +00:00
parent 60d4148131
commit 834ca1af66

View file

@ -73,7 +73,10 @@ class DebugSessionConnection(Closeable):
@property
def is_client(self):
return self._server is None
try:
return self._sock.server is None
except AttributeError:
return True
def iter_messages(self):
if self.closed: