Fixed a bug in the function time_response

Signed-off-by: kirill <kirill.milkin05@mail.ru>
pull/3/head
kirill 2 years ago
parent 8e981e28f9
commit 5537418968
  1. 3
      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 ws.send_str(result_response)
await asyncio.sleep(delay) await asyncio.sleep(delay)
except ConnectionResetError: except ConnectionResetError:
await asyncio.sleep(delay) break
Loading…
Cancel
Save