From fd0baff0938846a5382016683a7a2cc08ccb4016 Mon Sep 17 00:00:00 2001 From: jesopo Date: Thu, 10 Oct 2019 14:12:58 +0100 Subject: only .call() PollHooks when they're "due" --- src/IRCBot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/IRCBot.py') 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()): -- cgit v1.3.1-10-gc9f91