summaryrefslogtreecommitdiff
path: root/omegle.py
diff options
context:
space:
mode:
Diffstat (limited to 'omegle.py')
-rw-r--r--omegle.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/omegle.py b/omegle.py
index 2a8eae2..528b629 100644
--- a/omegle.py
+++ b/omegle.py
@@ -100,7 +100,7 @@ class OmegleChat(RESTClient):
self.logger.debug("disconnect()")
self.is_confirmed = False
self.timer.stop()
- if self.is_confirmed:
+ if self.is_connected:
r = RESTClient.request(self,"POST", "/disconnect", urllib.urlencode({'id': self.id}))
body = r.read()
self.logger.debug("/disconnect sent. Read: %s" % body)