Add polling callback

This commit is contained in:
rucadi
2022-12-16 17:10:13 +01:00
parent 685f9631b5
commit 1742c04bab
2 changed files with 13 additions and 0 deletions

View File

@@ -106,6 +106,7 @@ def create_api(app):
def wait_on_server(demo=None):
while 1:
time.sleep(0.5)
modules.script_callbacks.app_polling_callback(None, demo)
if shared.state.need_restart:
shared.state.need_restart = False
time.sleep(0.5)