summaryrefslogtreecommitdiff
path: root/proxy.py
diff options
context:
space:
mode:
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)