mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 08:26:11 +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)
|
apply_markdown=self.apply_markdown)
|
||||||
except Exception:
|
except Exception:
|
||||||
logging.exception("Got error adding event to queue %s" % (self.event_queue.id))
|
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):
|
def accepts_event_type(self, type):
|
||||||
if self.event_types is None:
|
if self.event_types is None:
|
||||||
|
|||||||
Reference in New Issue
Block a user