1
0
mirror of https://github.com/janvarev/Irene-Voice-Assistant.git synced 2025-12-05 23:08:23 +02:00

6.3 - фикс в webapi - апдейт таймеров теперь вызывается нерекурсивно

This commit is contained in:
janvarev
2022-05-26 13:53:31 +03:00
parent d0709ce895
commit baad66e0d0
2 changed files with 11 additions and 10 deletions

View File

@@ -195,10 +195,8 @@ async def replyWasGiven():
#print("debug - run context after webapi call")
def core_update_timers_http(runReq=True):
if not is_running:
return
if runReq:
time.sleep(5) # small sleep before start
while is_running:
try:
import requests
if webapi_options["use_ssl"]:
@@ -209,11 +207,14 @@ def core_update_timers_http(runReq=True):
r = requests.get(reqstr,verify=False)
except Exception:
pass
try:
time.sleep(2)
except:
return
core_update_timers_http()
return
@app.on_event("shutdown")
def app_shutdown():

View File

@@ -8,7 +8,7 @@ from threading import Timer
from jaa import JaaCore
version = "6.2"
version = "6.3"
# main VACore class