X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=new2%2Fplomrogue%2Fgame.py;h=d90aa0b0f8a47350536244d7f3fab39ffdb01fce;hb=61e7b58cf8be7a0c24d78a1336e54fdbf088deea;hp=6295f8df5beeee6ff2af53a66b05e33549d88f0f;hpb=59a3670b274793215fbea550d2ec7f90527ad53c;p=plomrogue2-experiments diff --git a/new2/plomrogue/game.py b/new2/plomrogue/game.py index 6295f8d..d90aa0b 100755 --- a/new2/plomrogue/game.py +++ b/new2/plomrogue/game.py @@ -94,7 +94,12 @@ class Game(GameBase): def run_tick(self): to_delete = [] for connection_id in self.sessions: - if not connection_id in self.io.server.clients: + connection_id_found = False + for server in self.io.servers: + if connection_id in server.clients: + connection_id_found = True + break + if not connection_id_found: t = self.get_thing(self.sessions[connection_id], create_unfound=False) self.things.remove(t) to_delete += [connection_id]