diff options
| author | 2019-06-22 23:31:06 +0100 | |
|---|---|---|
| committer | 2019-06-22 23:31:06 +0100 | |
| commit | 22574448da89112ae04bd75b22de7655eeb7fb98 (patch) | |
| tree | ced5bc601dcc6509f28da0203c735acb3938db7d /src | |
| parent | Don't needlessly call time.monotonic() when checking cache expirations (diff) | |
| signature | ||
until_read_timeout is a func - read_timed_out has always been returning false
Diffstat (limited to 'src')
| -rw-r--r-- | src/IRCServer.py | 2 |
1 files changed, 1 insertions, 1 deletions
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() |
