until_read_timeout is a func - read_timed_out has always been returning false
This commit is contained in:
parent
01bad3a76e
commit
22574448da
1 changed files with 1 additions and 1 deletions
|
@ -237,7 +237,7 @@ class Server(IRCObject.Object):
|
|||
return max(0, (self.socket.last_read+READ_TIMEOUT_SECONDS
|
||||
)-time.monotonic())
|
||||
def read_timed_out(self) -> bool:
|
||||
return self.until_read_timeout == 0
|
||||
return self.until_read_timeout() == 0
|
||||
|
||||
def read(self) -> typing.Optional[typing.List[str]]:
|
||||
lines = self.socket.read()
|
||||
|
|
Loading…
Reference in a new issue