mirror of
https://github.com/microsoft/debugpy.git
synced 2025-12-23 08:48:12 +00:00
Close the "socket" when the VSC processor closes.
This commit is contained in:
parent
18fdd345e1
commit
75ea8d877a
1 changed files with 4 additions and 1 deletions
|
|
@ -375,7 +375,10 @@ class VSCodeMessageProcessor(ipcjson.SocketIO, ipcjson.IpcChannel):
|
|||
t.start()
|
||||
|
||||
def close(self):
|
||||
# TODO: docstring
|
||||
"""Stop the message processor and release its resources."""
|
||||
self.pydevd.shutdown()
|
||||
self.pydevd.close()
|
||||
|
||||
global ptvsd_sys_exit_code
|
||||
self.send_event('exited', exitCode=ptvsd_sys_exit_code)
|
||||
self.send_event('terminated')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue