diff options
| author | 2019-10-10 14:12:58 +0100 | |
|---|---|---|
| committer | 2019-10-10 14:12:58 +0100 | |
| commit | fd0baff0938846a5382016683a7a2cc08ccb4016 (patch) | |
| tree | c06a596adb4fd8d01cfa4a0cfc66a9892f803d7d /src/IRCBot.py | |
| parent | move PoolHook registrations to start.py (diff) | |
| signature | ||
only .call() PollHooks when they're "due"
Diffstat (limited to 'src/IRCBot.py')
| -rw-r--r-- | src/IRCBot.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/IRCBot.py b/src/IRCBot.py index b1060dbf..2f3d38d0 100644 --- a/src/IRCBot.py +++ b/src/IRCBot.py @@ -376,7 +376,8 @@ class Bot(object): def _check(self): for poll_timeout in self._poll_timeouts: - poll_timeout.call() + if poll_timeout.next() == 0: + poll_timeout.call() throttle_filled = False for server in list(self.servers.values()): |
