summaryrefslogtreecommitdiff
path: root/miniircd
diff options
context:
space:
mode:
authorJoel Rosdahl <joel@rosdahl.net>2017-05-25 22:16:33 +0200
committerJoel Rosdahl <joel@rosdahl.net>2017-05-25 22:16:33 +0200
commit092d612cf9aad5b253c49b24abe5d3ad752b8b58 (patch)
tree2f0627bcb2f4bc545cd3f2b2fef76e29530fa730 /miniircd
parent2d4e489881dfee3c0ecea7609de89fee4cace224 (diff)
downloadminiircd-092d612cf9aad5b253c49b24abe5d3ad752b8b58.tar.gz
miniircd-092d612cf9aad5b253c49b24abe5d3ad752b8b58.zip
Fix Python 3 crash after disconnecting an unresponsive client
Fixes #28.
Diffstat (limited to 'miniircd')
-rwxr-xr-xminiircd2
1 files changed, 1 insertions, 1 deletions
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