From c5299326a8b8194a8767d632d3f84421bc1a9672 Mon Sep 17 00:00:00 2001 From: Babak Farrokhi Date: Mon, 9 May 2016 11:24:22 +0430 Subject: [PATCH] fix variable name after recent refactoring --- dnsping.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dnsping.py b/dnsping.py index 3c1fe74..38a840f 100755 --- a/dnsping.py +++ b/dnsping.py @@ -64,9 +64,9 @@ usage: %s [-h] [-q] [-v] [-s server] [-p port] [-P port] [-S address] [-c count] 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 main():