Skip to content

Commit b13416e

Browse files
committed
make listening -> not listening -> close debugger consistent
When you press F6, if there was a client, the connection was closed but if there was not yet a client the debugger was closed entirely. Now when listening just close the listener first and when you really want to close just press F6 again. Signed-off-by: BlackEagle <ike.devolder@gmail.com>
1 parent 6e1a991 commit b13416e

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

pythonx/vdebug/session.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,10 @@ def run(self):
6666
def stop(self):
6767
if self.is_connected():
6868
self.__session.close_connection()
69-
elif self.is_open():
69+
elif self.is_listening():
7070
self.stop_listening()
71+
elif self.is_open():
7172
self.__ui.close()
72-
elif self.is_listening():
73-
self.listener.stop()
7473
else:
7574
self.__ui.say("Vdebug is not running")
7675

0 commit comments

Comments
 (0)