forked from mirror/Archipelago
LADX: catch exception after closing magpie #5687
This commit is contained in:
@@ -195,6 +195,7 @@ class MagpieBridge:
|
||||
async def handler(self, websocket):
|
||||
self.ws = websocket
|
||||
while True:
|
||||
try:
|
||||
message = json.loads(await websocket.recv())
|
||||
if message["type"] == "handshake":
|
||||
logger.info(
|
||||
@@ -210,6 +211,8 @@ class MagpieBridge:
|
||||
await self.send_all_checks()
|
||||
if self.use_entrance_tracker():
|
||||
await self.send_gps(diff=False)
|
||||
except websockets.exceptions.ConnectionClosedOK:
|
||||
pass
|
||||
|
||||
# Translate renamed IDs back to LADXR IDs
|
||||
@staticmethod
|
||||
|
||||
Reference in New Issue
Block a user