From bee25e81510591ade84600d509477231b0bcd28c Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Sat, 31 Oct 2020 11:03:59 +0100 Subject: [PATCH] Only include clients with sessions in send-to-all. --- new2/plomrogue/io.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/new2/plomrogue/io.py b/new2/plomrogue/io.py index 908d7bf..acf58d4 100644 --- a/new2/plomrogue/io.py +++ b/new2/plomrogue/io.py @@ -91,5 +91,6 @@ class GameIO(): if connection_id: self.server.clients[connection_id].put(msg) else: - for c in self.server.clients.values(): - c.put(msg) + for c_id in self.game.sessions: + client = self.server.clients[c_id] + client.put(msg) -- 2.30.2