mirror of
https://github.com/microsoft/debugpy.git
synced 2025-12-23 08:48:12 +00:00
Fix DebugSessionConnection.is_client.
This commit is contained in:
parent
60d4148131
commit
834ca1af66
1 changed files with 4 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue