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 43e5a24..93e9911 100644
--- a/proxy.py
+++ b/proxy.py
@@ -73,7 +73,10 @@ class OmegleProxyChat(OmegleChat):
def on_disconnect(self):
print self.c("%s [EVT] %s disconnect" % (time.strftime("%H:%M:%S"), self.name))
if self.partner.is_confirmed:
- self.partner.disconnect()
+ try:
+ self.partner.disconnect()
+ except:
+ pass
self.disconnect_event.set()