reactor: Fix typo

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

View File

@ -240,7 +240,7 @@ class SelectReactor:
# File descriptors
def register_fd(self, fd, read_callback, write_callback=None):
file_handler = ReactorFileHandler(fd, read_callback, write_callback)
self.set_fd_wake(file_handle, True, False)
self.set_fd_wake(file_handler, True, False)
return file_handler
def unregister_fd(self, file_handler):
if file_handler in self._read_fds:
@ -366,7 +366,7 @@ class EPollReactor(SelectReactor):
def register_fd(self, fd, read_callback, write_callback=None):
file_handler = ReactorFileHandler(fd, read_callback, write_callback)
fds = self._fds.copy()
fds[fd] = callback
fds[fd] = read_callback
self._fds = fds
self._epoll.register(fd, select.EPOLLIN | select.EPOLLHUP)
return file_handler