From ab2701837c8ca6a17a85b1d1bdcdbef45c0f5433 Mon Sep 17 00:00:00 2001 From: jesopo Date: Wed, 9 Oct 2019 12:47:03 +0100 Subject: [PATCH] we should be catching `timer` as the output of self._timers.add --- src/IRCBot.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/IRCBot.py b/src/IRCBot.py index 08f6419a..df0b0540 100644 --- a/src/IRCBot.py +++ b/src/IRCBot.py @@ -394,8 +394,9 @@ class Bot(object): if not self.get_server_by_id(server.id): reconnect_delay = self.config.get("reconnect-delay", 10) - self._timers.add("timed-reconnect", self._timed_reconnect, - reconnect_delay, server_id=server.id) + timer = self._timers.add("timed-reconnect", + self._timed_reconnect, reconnect_delay, + server_id=server.id) self.reconnections[server.id] = timer self.log.warn(