mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-08-04 11:12:35 +00:00
Merge pull request #8789 from Rucadi/master
Add polling and reload callback for extensions.
This commit is contained in:
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()
|
||||
|
Reference in New Issue
Block a user