From 639b640e1b2626f54232fafb7895f27a2a65a0a5 Mon Sep 17 00:00:00 2001 From: yvesf Date: Fri, 29 May 2009 19:06:03 +0000 Subject: fuck git-svn-id: http://xapek.org/svn/common/omegle@1049 d0e8fea9-7529-0410-93fb-d39fd5b9c1dd --- omegle.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'omegle.py') diff --git a/omegle.py b/omegle.py index ab64c09..5d92372 100644 --- a/omegle.py +++ b/omegle.py @@ -91,16 +91,14 @@ class OmegleChat(RESTClient): self.is_connected = False self.timer.stop() if self.is_confirmed: - self.is_confirmed = False - self.id = None r = RESTClient.request(self,"POST", "/disconnect", urllib.urlencode({'id': self.id})) body = r.read() self.logger.debug("/disconnect sent. Read: %s" % body) if body == "win": - pass + self.is_confirmed = False + self.id = None else: self.is_connected = True #disconnect failed - self.is_confirmed = True raise Exception("/disconnect; Bad response: %s" % body) def _events(self): -- cgit v1.2.1