File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ def run(*args, **kwargs):
50
50
51
51
# Check for Ctrl+C. SIGINT will also be sent by our code if WServer is closed.
52
52
def signal_handler (signal , frame ):
53
+ print ("in signal handler, calling stop server" )
53
54
stop_server ()
54
55
55
56
signal .signal (signal .SIGINT , signal_handler )
@@ -362,8 +363,12 @@ def stop_server():
362
363
# check to see if the event loop is still going, if so join it.
363
364
#
364
365
if __t .is_alive ():
366
+ print ("__t is alive still" )
365
367
if threading .get_ident () != __t .ident :
368
+ print ("but it's not my thread, so I'll join..." )
366
369
__t .join ()
370
+ else :
371
+ print ("__t is alive, but that's my thread! Yikes." )
367
372
368
373
# If the main thread has already stopped, the python interpreter
369
374
# is likely just running .join on the two remaining threads (in
You can’t perform that action at this time.
0 commit comments