diff options
author | AUTOMATIC <16777216c@gmail.com> | 2022-09-23 08:48:19 +0300 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2022-09-23 08:48:19 +0300 |
commit | c82e32652e589a556b0477d484b6f58d13c652b1 (patch) | |
tree | 160762e8d3a1a03453f5b31fbb511d3e38c1e311 /webui.py | |
parent | 02f58cde8daab00a02cd7ff1315187e56b051e91 (diff) |
prevent weird behavior when pressing interrupt just as image finishes
Diffstat (limited to 'webui.py')
-rw-r--r-- | webui.py | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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)
|