we should be catching timer as the output of self._timers.add

This commit is contained in:
jesopo 2019-10-09 12:47:03 +01:00
parent a0870ad118
commit ab2701837c

View file

@ -394,8 +394,9 @@ class Bot(object):
if not self.get_server_by_id(server.id): if not self.get_server_by_id(server.id):
reconnect_delay = self.config.get("reconnect-delay", 10) reconnect_delay = self.config.get("reconnect-delay", 10)
self._timers.add("timed-reconnect", self._timed_reconnect, timer = self._timers.add("timed-reconnect",
reconnect_delay, server_id=server.id) self._timed_reconnect, reconnect_delay,
server_id=server.id)
self.reconnections[server.id] = timer self.reconnections[server.id] = timer
self.log.warn( self.log.warn(