mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-08-04 11:12:35 +00:00
remove unwanted changes from #8789
This commit is contained in:
4
webui.py
4
webui.py
@@ -264,13 +264,13 @@ 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()
|
||||
time.sleep(0.5)
|
||||
|
||||
modules.script_callbacks.app_reload_callback()
|
||||
break
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user