List()ify self.bot.servers.values() as it can change mid-QUIT

This commit is contained in:
jesopo 2019-06-06 22:39:57 +01:00
parent ef0c2c65e0
commit 9c6b9c3964

View file

@ -20,7 +20,7 @@ class Module(ModuleManager.BaseModule):
self.events.on("signal.interrupt").call(signum=signum)
written = False
for server in self.bot.servers.values():
for server in list(self.bot.servers.values()):
if server.connected:
server.socket.clear_send_buffer()