Close the "socket" when the VSC processor closes.

This commit is contained in:
Eric Snow 2018-02-14 01:43:06 +00:00
parent 18fdd345e1
commit 75ea8d877a

View file

@ -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')