summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--proxy.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/proxy.py b/proxy.py
index af29c53..5f1c86e 100644
--- a/proxy.py
+++ b/proxy.py
@@ -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: