Skip to content

Commit 7fb1963

Browse files
committed
make sure connection is closed when stopping
When stopping, also make sure the close_connection of the session is called. As a sideeffect the status in the statuswindow is updated properly now after the previous change. Signed-off-by: BlackEagle <ike.devolder@gmail.com>
1 parent b13416e commit 7fb1963

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

pythonx/vdebug/session.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ def stop_listening(self):
5757
self.listener.stop()
5858
self.ui().say("Vdebug stopped waiting for a connection")
5959

60+
if self.__session:
61+
self.__session.close_connection()
62+
6063
def run(self):
6164
if self.is_connected():
6265
self.dispatch_event("run")

0 commit comments

Comments
 (0)