From 22574448da89112ae04bd75b22de7655eeb7fb98 Mon Sep 17 00:00:00 2001 From: jesopo Date: Sat, 22 Jun 2019 23:31:06 +0100 Subject: [PATCH] until_read_timeout is a func - read_timed_out has always been returning false --- src/IRCServer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/IRCServer.py b/src/IRCServer.py index 0316cc60..0ee8188b 100644 --- a/src/IRCServer.py +++ b/src/IRCServer.py @@ -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()