Skip to content
This repository was archived by the owner on Aug 28, 2020. It is now read-only.

Commit c2dedb0

Browse files
committed
clean up the debugging session only if there is no active connection
1 parent 486d095 commit c2dedb0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pugdebug/debugger.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,11 @@ def start_new_connection(self):
185185

186186
self.debugging_started_signal.emit()
187187

188+
def handle_server_stopped(self):
189+
if not self.is_connected():
190+
self.cleanup()
191+
self.debugging_stopped_signal.emit()
192+
188193
def stop_debug(self):
189194
"""Stop a debugging session
190195

0 commit comments

Comments
 (0)