summaryrefslogtreecommitdiff
path: root/proxy.py
diff options
context:
space:
mode:
authoryvesf <yvesf@d0e8fea9-7529-0410-93fb-d39fd5b9c1dd>2009-06-11 17:47:05 +0000
committeryvesf <yvesf@d0e8fea9-7529-0410-93fb-d39fd5b9c1dd>2009-06-11 17:47:05 +0000
commit508dce1a34e85702e25e2628f6a90718b6f1a13d (patch)
treeda2f75bc7d40a0cbfdb11db7444ada8f3d96d3c6 /proxy.py
parent6124c3ead6a45ae852ec2b671436a9de0566002a (diff)
downloadomegle-508dce1a34e85702e25e2628f6a90718b6f1a13d.tar.gz
omegle-508dce1a34e85702e25e2628f6a90718b6f1a13d.zip
dbchange
git-svn-id: http://xapek.org/svn/common/omegle@1116 d0e8fea9-7529-0410-93fb-d39fd5b9c1dd
Diffstat (limited to 'proxy.py')
-rw-r--r--proxy.py5
1 files changed, 4 insertions, 1 deletions
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)