Fix module unloading
This commit is contained in:
parent
f81349bbfd
commit
b517cac4cf
@ -569,7 +569,7 @@ class Bot(threading.Thread):
|
||||
self.event_timer.cancel()
|
||||
|
||||
logger.info("Save and unload all modules...")
|
||||
for mod in self.modules.items():
|
||||
for mod in [m for m in self.modules.keys()]:
|
||||
self.unload_module(mod)
|
||||
|
||||
logger.info("Close all servers connection...")
|
||||
|
Loading…
x
Reference in New Issue
Block a user