From 69f840c2f5494a88bffc7618f2e13d1aabf7f76d Mon Sep 17 00:00:00 2001 From: yvesf Date: Fri, 29 May 2009 15:31:58 +0000 Subject: foobar git-svn-id: http://xapek.org/svn/common/omegle@1041 d0e8fea9-7529-0410-93fb-d39fd5b9c1dd --- proxy.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: -- cgit v1.2.1