Add polling callback

This commit is contained in:
rucadi
2022-12-16 17:10:13 +01:00
parent 226d840e84
commit 3662a274e2
2 changed files with 13 additions and 0 deletions

View File

@@ -171,6 +171,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)