From 508dce1a34e85702e25e2628f6a90718b6f1a13d Mon Sep 17 00:00:00 2001 From: yvesf Date: Thu, 11 Jun 2009 17:47:05 +0000 Subject: dbchange git-svn-id: http://xapek.org/svn/common/omegle@1116 d0e8fea9-7529-0410-93fb-d39fd5b9c1dd --- proxy.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'proxy.py') diff --git a/proxy.py b/proxy.py index 7faf430..d37d9df 100644 --- a/proxy.py +++ b/proxy.py @@ -31,7 +31,10 @@ class OmegleProxyChat(OmegleChat): self.idlecount += 1 if self.idlecount > 8: self.logger.info("Idle > 8. disconnect()") - self.disconnect() + try: + self.disconnect() + except: + self.disconnect_event.set() else: self.logger.info("Idle count %s/8" % self.idlecount) -- cgit v1.2.1