2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-26 03:19:48 +00:00

Avoid changing hash size during loop

Coerce iterator into a list so that for loop does not
raise an exception.
This commit is contained in:
Jarrod Johnson 2016-03-16 08:40:39 -04:00
parent fb1e20906e
commit f15cf014e9

View File

@ -37,7 +37,7 @@ class _ShellHandler(consoleserver.ConsoleHandler):
def _got_disconnected(self):
self.connectstate = 'closed'
self._send_rcpts({'connectstate': self.connectstate})
for session in self.livesessions:
for session in list(self.livesessions):
session.destroy()