Disconnect handlers from event queues via a finally block

(imported from commit ac63a962f978b05a5d8d6bf81861b908b5fd54b3)
This commit is contained in:
Zev Benjamin
2013-12-10 17:44:35 -05:00
parent b566c0f201
commit 874d4282c0

View File

@@ -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: