From 94455272493b859d1acdd0347ba86d5cfc041732 Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Fri, 17 Jul 2020 15:50:00 +0200 Subject: [PATCH] Multiclient: use new romname for persistent storage --- MultiClient.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MultiClient.py b/MultiClient.py index b966059d..afc20bb0 100644 --- a/MultiClient.py +++ b/MultiClient.py @@ -681,10 +681,10 @@ async def server_loop(ctx: Context, address=None): address = ctx.server_address if address is None: # see if this is an old connection await asyncio.sleep(0.5) # wait for snes connection to succeed if possible. - rom = "".join(chr(x) for x in ctx.rom) if ctx.rom is not None else None + rom = ctx.rom if ctx.rom else None try: servers = cached_address = Utils.persistent_load()["servers"] - address = servers[rom] if rom is not None and rom in servers else servers["default"] + address = servers[rom] if rom and rom in servers else servers["default"] except Exception as e: logging.debug(f"Could not find cached server address. {e}")