From f419e9faf01c19a01fab051b65cdc3d11f824c1e Mon Sep 17 00:00:00 2001 From: nin0dev Date: Tue, 18 Jun 2024 01:17:30 -0400 Subject: [PATCH] Fixed connection close on null reply --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index a4e044c..28bc102 100644 --- a/main.py +++ b/main.py @@ -20,8 +20,8 @@ async def handle(websocket): if message == "GET": if EAS_MESSAGE == "": await websocket.send("NULL") - return - await websocket.send(f"MSG {EAS_MESSAGE}") + else: + await websocket.send(f"MSG {EAS_MESSAGE}") if message.startswith(f"MSG {TOKEN} "): # broadcast from vee EAS_MESSAGE = message.replace(f"MSG {TOKEN} ", "")