Skip to content

Commit

Permalink
Fix the type difference between _current_thread and _flushing_thread (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
keli authored and prologic committed Jul 8, 2016
1 parent f62fcd2 commit 0b2f624
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion circuits/core/manager.py
Expand Up @@ -574,7 +574,7 @@ def _flush(self):
# events. Note that _flush can be called recursively.
old_flushing = self._flushing_thread
try:
self._flushing_thread = thread.get_ident()
self._flushing_thread = current_thread()
if self._flush_batch == 0:
self._flush_batch = len(self._queue)
while self._flush_batch > 0:
Expand Down

0 comments on commit 0b2f624

Please sign in to comment.