mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-01-09 02:31:57 -08:00
Merge pull request #8789 from Rucadi/master
Add polling and reload callback for extensions.
This commit is contained in:
commit
f96e6fbd0c
2 changed files with 26 additions and 1 deletions
2
webui.py
2
webui.py
|
|
@ -264,7 +264,9 @@ 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:
|
||||
modules.script_callbacks.app_reload_callback(None, demo)
|
||||
shared.state.need_restart = False
|
||||
time.sleep(0.5)
|
||||
demo.close()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue