Don't pass connection_params through to reconnect in normal circumstances

This commit is contained in:
jesopo 2018-11-05 20:51:51 +00:00
parent 257659aa73
commit 0a70fda6dc

View file

@ -207,8 +207,7 @@ class Bot(object):
if not self.get_server(server.id): if not self.get_server(server.id):
reconnect_delay = self.config.get("reconnect-delay", 10) reconnect_delay = self.config.get("reconnect-delay", 10)
self._timers.add("reconnect", reconnect_delay, self._timers.add("reconnect", reconnect_delay,
server_id=server.id, server_id=server.id)
connection_params=server.connection_params)
self.log.info( self.log.info(
"Disconnected from %s, reconnecting in %d seconds", "Disconnected from %s, reconnecting in %d seconds",
[str(server), reconnect_delay]) [str(server), reconnect_delay])