Skip to content

Commit

Permalink
Fixes a complete event bug (#123) (#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
keli authored and prologic committed Jul 6, 2016
1 parent 50b562f commit 25e78c0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions circuits/core/manager.py
Expand Up @@ -413,8 +413,9 @@ def unregisterChild(self, component):

def _fire(self, event, channel, priority=0):
# check if event is fired while handling an event
if thread.get_ident() == (self._executing_thread or
self._flushing_thread) and not isinstance(event, signal):
th = (self._executing_thread or self._flushing_thread)
if thread.get_ident() == (th.ident if th else None) and \
not isinstance(event, signal):
if self._currently_handling is not None and \
getattr(self._currently_handling, "cause", None):
# if the currently handled event wants to track the
Expand Down

0 comments on commit 25e78c0

Please sign in to comment.