Add a callback called before reloading the server

This commit is contained in:
rucadi
2022-12-16 18:31:20 +01:00
parent 1742c04bab
commit 0c8825b2be
2 changed files with 13 additions and 1 deletions

View File

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