List()ify self.bot.servers.values() as it can change mid-QUIT
This commit is contained in:
parent
ef0c2c65e0
commit
9c6b9c3964
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ class Module(ModuleManager.BaseModule):
|
||||||
self.events.on("signal.interrupt").call(signum=signum)
|
self.events.on("signal.interrupt").call(signum=signum)
|
||||||
|
|
||||||
written = False
|
written = False
|
||||||
for server in self.bot.servers.values():
|
for server in list(self.bot.servers.values()):
|
||||||
if server.connected:
|
if server.connected:
|
||||||
server.socket.clear_send_buffer()
|
server.socket.clear_send_buffer()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue