diff options
Diffstat (limited to 'aiogreen.py')
-rw-r--r-- | aiogreen.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/aiogreen.py b/aiogreen.py index 45b4ac4..79d005f 100644 --- a/aiogreen.py +++ b/aiogreen.py @@ -209,7 +209,7 @@ class EventLoop(asyncio.SelectorEventLoop): def call_soon(self, callback, *args): handle = super(EventLoop, self).call_soon(callback, *args) - if self._selector._event: + if self._selector is not None and self._selector._event: # selector.select() is running: write into the self-pipe to wake up # the selector self._write_to_self() @@ -217,7 +217,7 @@ class EventLoop(asyncio.SelectorEventLoop): def call_at(self, when, callback, *args): handle = super(EventLoop, self).call_at(when, callback, *args) - if self._selector._event: + if self._selector is not None and self._selector._event: # selector.select() is running: write into the self-pipe to wake up # the selector self._write_to_self() |