summaryrefslogtreecommitdiff
path: root/omegle.py
diff options
context:
space:
mode:
authoryvesf <yvesf@d0e8fea9-7529-0410-93fb-d39fd5b9c1dd>2009-06-13 08:43:43 +0000
committeryvesf <yvesf@d0e8fea9-7529-0410-93fb-d39fd5b9c1dd>2009-06-13 08:43:43 +0000
commit51ea9c0580a19f185660dce3dcb6325e87d8ce15 (patch)
tree9f37da9a4338bc0bb48149d235c44fcf75849dbf /omegle.py
parent92745d835fcf2139556fda9c8aa252471e4cb4de (diff)
downloadomegle-51ea9c0580a19f185660dce3dcb6325e87d8ce15.tar.gz
omegle-51ea9c0580a19f185660dce3dcb6325e87d8ce15.zip
asd
git-svn-id: http://xapek.org/svn/common/omegle@1131 d0e8fea9-7529-0410-93fb-d39fd5b9c1dd
Diffstat (limited to 'omegle.py')
-rw-r--r--omegle.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/omegle.py b/omegle.py
index 5520f3f..395bf4b 100644
--- a/omegle.py
+++ b/omegle.py
@@ -177,6 +177,8 @@ class OmegleChat(RESTClient):
self.on_idle()
return
for data in data_set:
+ if not self.is_connected: #in case of disconnect
+ break #stop dispatching messages
if data[0] == "typing":
self.on_typing()
elif data[0] == "gotMessage" and data.__len__() == 2: