From 51ea9c0580a19f185660dce3dcb6325e87d8ce15 Mon Sep 17 00:00:00 2001 From: yvesf Date: Sat, 13 Jun 2009 08:43:43 +0000 Subject: asd git-svn-id: http://xapek.org/svn/common/omegle@1131 d0e8fea9-7529-0410-93fb-d39fd5b9c1dd --- omegle.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'omegle.py') 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: -- cgit v1.2.1