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

Commit 0b2bf44

Browse files
committed
kill current connection and stop debugging when an error happens in the connection
1 parent 0d3eb31 commit 0b2bf44

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pugdebug/debugger.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,10 @@ def handle_connection_error(self, action, error):
324324
error = error + " during %s action" % action
325325
self.error_signal.emit(error)
326326

327+
# The current connection is FUBAR so just set it to None
328+
self.current_connection = None
329+
self.stop_debug()
330+
327331
def get_current_file(self):
328332
if 'filename' in self.step_result:
329333
self.current_file = self.step_result['filename']

0 commit comments

Comments
 (0)