Explicitly disconnect before reconnecting in modules/sts.py

This commit is contained in:
jesopo 2018-11-05 20:35:23 +00:00
parent ce3b319bee
commit ea3ed99a9e

View file

@ -38,6 +38,7 @@ class Module(ModuleManager.BaseModule):
if not event["server"].tls:
self._set_policy(event["server"], int(info["port"]),
None, True)
event["server"].disconnect()
self.bot.reconnect(event["server"].id,
event["server"].connection_params)
else: