summaryrefslogtreecommitdiff
path: root/omegle.py
diff options
context:
space:
mode:
authoryvesf <yvesf@d0e8fea9-7529-0410-93fb-d39fd5b9c1dd>2009-07-03 20:43:51 +0000
committeryvesf <yvesf@d0e8fea9-7529-0410-93fb-d39fd5b9c1dd>2009-07-03 20:43:51 +0000
commitf743a0c7e71cf4cf152144a76a2041b731c95919 (patch)
tree5051e107a5b4a25be9399dff8dcec3be3031dd04 /omegle.py
parent55ff032856b22aa5e91a3416b83f69f577f732d3 (diff)
downloadomegle-f743a0c7e71cf4cf152144a76a2041b731c95919.tar.gz
omegle-f743a0c7e71cf4cf152144a76a2041b731c95919.zip
icq up
git-svn-id: http://xapek.org/svn/common/omegle@1175 d0e8fea9-7529-0410-93fb-d39fd5b9c1dd
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)