This repository was archived by the owner on Aug 28, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +12
-4
lines changed
Expand file tree Collapse file tree 3 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -200,11 +200,19 @@ def handle_post_start(self):
200200 """
201201 self .debugging_post_start_signal .emit ()
202202
203+ def stop_listening (self ):
204+ """Stop listening for new connections
205+ """
206+ self .server .stop_listening ()
207+
203208 def handle_server_stopped (self ):
204- """Handle when the server is stopped
209+ """Handle when the server stops listening to new connections
205210 """
211+ self .stop_debug ()
212+ self .connections .clear ()
213+
206214 if not self .is_connected ():
207- pass
215+ self . debugging_stopped_signal . emit ()
208216
209217 def stop_debug (self ):
210218 """Stop a debugging session
Original file line number Diff line number Diff line change @@ -518,7 +518,7 @@ def handle_debugging_post_start(self):
518518 self .step_into ()
519519
520520 def stop_listening (self ):
521- pass
521+ self . debugger . stop_listening ()
522522
523523 def stop_debug (self ):
524524 """Stop a debugging session
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ def start_listening(self):
4747 self .wait_for_accept = True
4848 self .start ()
4949
50- def stop (self ):
50+ def stop_listening (self ):
5151 self .wait_for_accept = False
5252
5353 def __connect (self ):
You can’t perform that action at this time.
0 commit comments