Commit cfa326bb authored by AUTOMATIC1111's avatar AUTOMATIC1111 Committed by GitHub

Merge pull request #14659 from AUTOMATIC1111/immediately-stop-on-second-interrupt

immediately stop on second interrupt
parents 7581da5d 14b9762b
......@@ -107,8 +107,9 @@ class Toprow:
)
def interrupt_function():
if shared.state.job_count > 1 and shared.opts.interrupt_after_current:
if not shared.state.stopping_generation and shared.state.job_count > 1 and shared.opts.interrupt_after_current:
shared.state.stop_generating()
gr.Info("Generation will stop after finishing this image, click again to stop immediately.")
else:
shared.state.interrupt()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment