diff options
-rw-r--r-- | proxy.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -72,7 +72,8 @@ if __name__ == "__main__": try: while True: - if event.wait(0.5): + event.wait(0.5) + if event.is_set(): print "One part disconnected, exiting" break except KeyboardInterrupt: |