diff options
Diffstat (limited to 'proxy.py')
-rw-r--r-- | proxy.py | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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) |