we should be catching timer
as the output of self._timers.add
This commit is contained in:
parent
a0870ad118
commit
ab2701837c
1 changed files with 3 additions and 2 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue