diff options
Diffstat (limited to 'omegle.py')
-rw-r--r-- | omegle.py | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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): |