Explicitly disconnect before reconnecting in modules/sts.py
This commit is contained in:
parent
ce3b319bee
commit
ea3ed99a9e
1 changed files with 1 additions and 0 deletions
|
@ -38,6 +38,7 @@ class Module(ModuleManager.BaseModule):
|
||||||
if not event["server"].tls:
|
if not event["server"].tls:
|
||||||
self._set_policy(event["server"], int(info["port"]),
|
self._set_policy(event["server"], int(info["port"]),
|
||||||
None, True)
|
None, True)
|
||||||
|
event["server"].disconnect()
|
||||||
self.bot.reconnect(event["server"].id,
|
self.bot.reconnect(event["server"].id,
|
||||||
event["server"].connection_params)
|
event["server"].connection_params)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue