Skip to content

Commit

Permalink
reactor: Fix typo
Browse files Browse the repository at this point in the history
Signed-off-by: Konstantin Vogel <[email protected]>
  • Loading branch information
D4SK authored and KevinOConnor committed Mar 15, 2023
1 parent 45dd30c commit 136283b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions klippy/reactor.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,12 +248,12 @@ def unregister_fd(self, file_handler):
if file_handler in self._write_fds:
self._write_fds.pop(self._write_fds.index(file_handler))
def set_fd_wake(self, file_handler, is_readable=True, is_writeable=False):
if file_hander in self._read_fds:
if file_handler in self._read_fds:
if not is_readable:
self._read_fds.pop(self._read_fds.index(file_handler))
elif is_readable:
self._read_fds.append(file_handler)
if file_hander in self._write_fds:
if file_handler in self._write_fds:
if not is_writeable:
self._write_fds.pop(self._write_fds.index(file_handler))
elif is_writeable:
Expand Down

0 comments on commit 136283b

Please sign in to comment.