From 092d612cf9aad5b253c49b24abe5d3ad752b8b58 Mon Sep 17 00:00:00 2001 From: Joel Rosdahl Date: Thu, 25 May 2017 22:16:33 +0200 Subject: Fix Python 3 crash after disconnecting an unresponsive client Fixes #28. --- CHANGES | 4 ++++ miniircd | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3