Skip to content

Commit

Permalink
sample: fix correctly setting events mask
Browse files Browse the repository at this point in the history
  • Loading branch information
boytm authored and saghul committed Dec 14, 2015
1 parent 54efa4e commit 09b2341
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/cares-resolver.py
Expand Up @@ -22,7 +22,7 @@ def _sock_state_cb(self, fd, readable, writable):
handle = self._fd_map[fd]
if not self._timer.active:
self._timer.start(self._timer_cb, 1.0, 1.0)
handle.start(pyuv.UV_READABLE if readable else 0 | pyuv.UV_WRITABLE if writable else 0, self._poll_cb)
handle.start((pyuv.UV_READABLE if readable else 0) | (pyuv.UV_WRITABLE if writable else 0), self._poll_cb)
else:
# Socket is now closed
handle = self._fd_map.pop(fd)
Expand Down

0 comments on commit 09b2341

Please sign in to comment.