Add a callback called before reloading the server

This commit is contained in:
rucadi
2022-12-16 18:31:20 +01:00
parent 3662a274e2
commit eb5eb8aa11
2 changed files with 13 additions and 1 deletions

View File

@@ -173,6 +173,7 @@ def wait_on_server(demo=None):
time.sleep(0.5)
modules.script_callbacks.app_polling_callback(None, demo)
if shared.state.need_restart:
modules.script_callbacks.app_reload_callback(None, demo)
shared.state.need_restart = False
time.sleep(0.5)
demo.close()