From 75ea8d877ac88b377cea9cf21d129e7529258ed0 Mon Sep 17 00:00:00 2001 From: Eric Snow Date: Wed, 14 Feb 2018 01:43:06 +0000 Subject: [PATCH] Close the "socket" when the VSC processor closes. --- ptvsd/wrapper.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ptvsd/wrapper.py b/ptvsd/wrapper.py index 998399bc..0833f32b 100644 --- a/ptvsd/wrapper.py +++ b/ptvsd/wrapper.py @@ -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')