reactor: Fix typo

Signed-off-by: Konstantin Vogel <konstantin.vogel@gmx.net>
This commit is contained in:
D4SK 2023-03-15 01:53:50 +01:00 committed by KevinOConnor
parent 45dd30c820
commit 136283bd14
1 changed files with 2 additions and 2 deletions

View File

@ -248,12 +248,12 @@ class SelectReactor:
if file_handler in self._write_fds: if file_handler in self._write_fds:
self._write_fds.pop(self._write_fds.index(file_handler)) self._write_fds.pop(self._write_fds.index(file_handler))
def set_fd_wake(self, file_handler, is_readable=True, is_writeable=False): 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: if not is_readable:
self._read_fds.pop(self._read_fds.index(file_handler)) self._read_fds.pop(self._read_fds.index(file_handler))
elif is_readable: elif is_readable:
self._read_fds.append(file_handler) self._read_fds.append(file_handler)
if file_hander in self._write_fds: if file_handler in self._write_fds:
if not is_writeable: if not is_writeable:
self._write_fds.pop(self._write_fds.index(file_handler)) self._write_fds.pop(self._write_fds.index(file_handler))
elif is_writeable: elif is_writeable: