Verify visible hello MCP run and add shared control lease
This commit is contained in:
@@ -54,6 +54,11 @@ class DapEngine:
|
||||
'description': self._description(location)}))
|
||||
return {}, events
|
||||
if command == 'disconnect':
|
||||
if self.attached is not None:
|
||||
try:
|
||||
self.rpc('release_control')
|
||||
except (SessionError, OSError):
|
||||
pass
|
||||
return {}, events
|
||||
if command == 'threads':
|
||||
return {'threads': [{'id': 1, 'name': 'Sprinter Z80'}]}, events
|
||||
@@ -118,7 +123,8 @@ class DapEngine:
|
||||
|
||||
def poll_events(self, timeout=1):
|
||||
previous = self.event_sequence
|
||||
result = self.rpc('events', {'after': self.event_sequence, 'timeout': timeout},
|
||||
result = self.rpc('events', {'after': self.event_sequence, 'timeout': timeout,
|
||||
'owner': 'cli'},
|
||||
timeout=timeout + 2)
|
||||
self.event_sequence = result['last']
|
||||
translated = []
|
||||
|
||||
Reference in New Issue
Block a user