1
0
Fork 0

Fix module unloading

This commit is contained in:
nemunaire 2017-07-29 15:25:44 +02:00
parent 9d0ab88c12
commit ef4a6e9af5
1 changed files with 1 additions and 1 deletions

View File

@ -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...")