until_read_timeout is a func - read_timed_out has always been returning false

This commit is contained in:
jesopo 2019-06-22 23:31:06 +01:00
parent 01bad3a76e
commit 22574448da

View file

@ -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()