From 93ce428ce1c641fd6498391a340134256cc81454 Mon Sep 17 00:00:00 2001 From: Ryan Huber Date: Sun, 5 Feb 2017 16:40:25 -0800 Subject: before return --- wee_slack.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wee_slack.py b/wee_slack.py index 9402990..9923f9d 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -261,6 +261,7 @@ class EventRouter(object): self.receive(request_metadata) elif return_code != -1: self.reply_buffer.pop(request_metadata.response_id, None) + self.delete_context(data) else: if request_metadata.response_id not in self.reply_buffer: self.reply_buffer[request_metadata.response_id] = "" @@ -808,9 +809,8 @@ class SlackTeam(object): self.connecting = False except Exception as e: dbg("websocket connection error: {}".format(e)) - #self.set_reconnect_url(None) - return False self.connecting = False + return False else: #The fast reconnect failed, so start over-ish for chan in self.channels: -- cgit