mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 22:43:42 +00:00
Disconnect handlers from event queues via a finally block
(imported from commit ac63a962f978b05a5d8d6bf81861b908b5fd54b3)
This commit is contained in:
@@ -101,7 +101,8 @@ class ClientDescriptor(object):
|
||||
apply_markdown=self.apply_markdown)
|
||||
except Exception:
|
||||
logging.exception("Got error adding event to queue %s" % (self.event_queue.id))
|
||||
self.disconnect_handler()
|
||||
finally:
|
||||
self.disconnect_handler()
|
||||
|
||||
def accepts_event_type(self, type):
|
||||
if self.event_types is None:
|
||||
|
||||
Reference in New Issue
Block a user