aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2022-09-23 05:48:19 +0000
committerAUTOMATIC <16777216c@gmail.com>2022-09-23 05:48:19 +0000
commitc82e32652e589a556b0477d484b6f58d13c652b1 (patch)
tree160762e8d3a1a03453f5b31fbb511d3e38c1e311
parent02f58cde8daab00a02cd7ff1315187e56b051e91 (diff)
downloadstable-diffusion-webui-gfx803-c82e32652e589a556b0477d484b6f58d13c652b1.tar.gz
stable-diffusion-webui-gfx803-c82e32652e589a556b0477d484b6f58d13c652b1.tar.bz2
stable-diffusion-webui-gfx803-c82e32652e589a556b0477d484b6f58d13c652b1.zip
prevent weird behavior when pressing interrupt just as image finishes
-rw-r--r--webui.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/webui.py b/webui.py
index a23d65a1..64c9d462 100644
--- a/webui.py
+++ b/webui.py
@@ -53,6 +53,7 @@ def wrap_gradio_gpu_call(func):
shared.state.current_latent = None
shared.state.current_image = None
shared.state.current_image_sampling_step = 0
+ shared.state.interrupted = False
with queue_lock:
res = func(*args, **kwargs)