mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-29 21:09:32 +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:
parent
fb1e20906e
commit
f15cf014e9
@ -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()
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user