From 55374189682eb67a49e54e134755448628570a29 Mon Sep 17 00:00:00 2001 From: kirill Date: Wed, 7 Jun 2023 17:11:08 +0300 Subject: [PATCH] Fixed a bug in the function time_response Signed-off-by: kirill --- demo/func/secondary_functions.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/demo/func/secondary_functions.py b/demo/func/secondary_functions.py index 5fc9107..9525d93 100644 --- a/demo/func/secondary_functions.py +++ b/demo/func/secondary_functions.py @@ -17,4 +17,5 @@ async def time_response(ws: WebSocketResponse, delay: int = 60): await ws.send_str(result_response) await asyncio.sleep(delay) except ConnectionResetError: - await asyncio.sleep(delay) \ No newline at end of file + break + \ No newline at end of file