From f15cf014e93a41058abea4293aedb23ccb809960 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 16 Mar 2016 08:40:39 -0400 Subject: [PATCH] Avoid changing hash size during loop Coerce iterator into a list so that for loop does not raise an exception. --- confluent_server/confluent/shellserver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confluent_server/confluent/shellserver.py b/confluent_server/confluent/shellserver.py index f3633959..c6626227 100644 --- a/confluent_server/confluent/shellserver.py +++ b/confluent_server/confluent/shellserver.py @@ -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()