Skip to content

Commit

Permalink
Pass events to IoWatcher callbacks, if pass_events is passed
Browse files Browse the repository at this point in the history
This caused an issue where it printed 10000 lines worth of Tracebacks
this caues Travis to kill the script, so we can't just ignore it
  • Loading branch information
Thomas Grainger committed Jun 28, 2015
1 parent 045b962 commit 3490eb5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tulipcore.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ def __init__(self, loop, fd, events, ref=True, priority=None):
self._writer = events & WRITE

def _start(self, pass_events=False):
if pass_events:
self.args = (self.events,) + self.args
if self._reader:
self.loop.aio.add_reader(self.fd, self._invoke)
if self._writer:
Expand Down

0 comments on commit 3490eb5

Please sign in to comment.