From b676d4131f6e068657a7f7f0d172546a4449b49b Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Sun, 19 Apr 2020 13:44:22 +0200 Subject: [PATCH] loudly fail on connection errors. --- MultiClient.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/MultiClient.py b/MultiClient.py index 5e8ad1d6..7b7b9c75 100644 --- a/MultiClient.py +++ b/MultiClient.py @@ -581,10 +581,7 @@ async def snes_flush_writes(ctx : Context): async def send_msgs(websocket, msgs): if not websocket or not websocket.open or websocket.closed: return - try: - await websocket.send(json.dumps(msgs)) - except websockets.ConnectionClosed: - pass + await websocket.send(json.dumps(msgs)) async def server_loop(ctx : Context, address = None): if ctx.socket is not None: