there can be more than one message on the socket; empty the queue when shutting down...
[saartuer.git] / tuerd
diff --git a/tuerd b/tuerd
index 220b2bca8078dd1efe57be8d1105d0154123846b..c0b4413957d4af20c9543106dcd73de7253bdc6a 100755 (executable)
--- a/tuerd
+++ b/tuerd
@@ -41,9 +41,10 @@ try:
        the_socket.accept()
 except KeyboardInterrupt:
        # this is what we waited for!
-       logger.info("Got SIGINT, terminating...")
        pass
 
+logger.info("Terminating...")
+
 # bring 'em all down
 the_waker.stop() # this one first, it "randomly" calls other threads
 the_pins.stop() # as does this