mirror of
https://github.com/microsoft/debugpy.git
synced 2025-12-23 08:48:12 +00:00
Ensure Debugpy closes connection after a disconnect response (#1859)
* Ensure Debugpy closes connection after a disconnect response * Moved disconnect fix from messaging to Client.disconnect_request
This commit is contained in:
parent
96de4376a5
commit
f054965148
1 changed files with 6 additions and 0 deletions
|
|
@ -700,6 +700,12 @@ class Client(components.Component):
|
|||
except Exception:
|
||||
log.swallow_exception()
|
||||
|
||||
# Close the client channel since we disconnected from the client.
|
||||
try:
|
||||
self.channel.close()
|
||||
except Exception:
|
||||
log.swallow_exception(level="warning")
|
||||
|
||||
def disconnect(self):
|
||||
super().disconnect()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue