Skip to content

Commit

Permalink
List()ify self.bot.servers.values() as it can change mid-QUIT
Browse files Browse the repository at this point in the history
  • Loading branch information
jesopo committed Jun 6, 2019
1 parent ef0c2c6 commit 9c6b9c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def _kill(self, signum):
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()

Expand Down

0 comments on commit 9c6b9c3

Please sign in to comment.