summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGES4
-rwxr-xr-xminiircd2
2 files changed, 5 insertions, 1 deletions
diff --git a/CHANGES b/CHANGES
index f4730f6..0f343eb 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,7 @@
+Unreleased
+
+ * Fixed Python 3 crash after disconnecting an unresponsive client.
+
1.2 (2017-05-22)
* Find certificate specified with relative path when using --daemon.
diff --git a/miniircd b/miniircd
index 0516ea8..f2d8e9f 100755
--- a/miniircd
+++ b/miniircd
@@ -910,7 +910,7 @@ class Server(object):
self.clients[x].socket_writable_notification()
now = time.time()
if last_aliveness_check + 10 < now:
- for client in self.clients.values():
+ for client in list(self.clients.values()):
client.check_aliveness()
last_aliveness_check = now