mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-01-20 05:10:15 +08:00
prevent weird behavior when pressing interrupt just as image finishes
This commit is contained in:
parent
02f58cde8d
commit
c82e32652e
1
webui.py
1
webui.py
@ -53,6 +53,7 @@ def wrap_gradio_gpu_call(func):
|
|||||||
shared.state.current_latent = None
|
shared.state.current_latent = None
|
||||||
shared.state.current_image = None
|
shared.state.current_image = None
|
||||||
shared.state.current_image_sampling_step = 0
|
shared.state.current_image_sampling_step = 0
|
||||||
|
shared.state.interrupted = False
|
||||||
|
|
||||||
with queue_lock:
|
with queue_lock:
|
||||||
res = func(*args, **kwargs)
|
res = func(*args, **kwargs)
|
||||||
|
Loading…
Reference in New Issue
Block a user