From df171aaa708a5164b2198b34a718deb49727e8d9 Mon Sep 17 00:00:00 2001 From: SantaSpeen Date: Thu, 13 Jul 2023 00:31:02 +0300 Subject: [PATCH] Minor fix --- src/modules/WebAPISystem/app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/WebAPISystem/app.py b/src/modules/WebAPISystem/app.py index 35a6af2..f6bce89 100644 --- a/src/modules/WebAPISystem/app.py +++ b/src/modules/WebAPISystem/app.py @@ -53,7 +53,8 @@ async def _method(method, secret_key: str = None): async def _stop(): await asyncio.sleep(1) - uvserver.should_exit = True + if uvserver is not None: + uvserver.should_exit = True data_run[0] = False