diff --git a/dnstraceroute.py b/dnstraceroute.py index b1c37e9..01a1af5 100755 --- a/dnstraceroute.py +++ b/dnstraceroute.py @@ -120,9 +120,9 @@ def usage(): def signal_handler(sig, frame): global shutdown - if should_stop: # pressed twice, so exit immediately + if shutdown: # pressed twice, so exit immediately exit(0) - should_stop = True # pressed once, exit gracefully + shutdown = True # pressed once, exit gracefully def expert_report(trace_path, color_mode):