Fix issue with cancelling prompt.

This commit is contained in:
comfyanonymous 2023-05-28 00:32:26 -04:00
parent 1cfb2a733f
commit ad81fd682a
1 changed files with 1 additions and 0 deletions

View File

@ -353,6 +353,7 @@ class PromptExecutor:
success, error, ex = recursive_execute(self.server, prompt, self.outputs, output_node_id, extra_data, executed, prompt_id, self.outputs_ui) success, error, ex = recursive_execute(self.server, prompt, self.outputs, output_node_id, extra_data, executed, prompt_id, self.outputs_ui)
if success is not True: if success is not True:
self.handle_execution_error(prompt_id, prompt, current_outputs, executed, error, ex) self.handle_execution_error(prompt_id, prompt, current_outputs, executed, error, ex)
break
for x in executed: for x in executed:
self.old_prompt[x] = copy.deepcopy(prompt[x]) self.old_prompt[x] = copy.deepcopy(prompt[x])