mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-08-17 10:24:21 +00:00
remove creation of non-used asyncio_loop (#9284)
This commit is contained in:
parent
966f3a5206
commit
fa340add55
@ -646,8 +646,6 @@ class PromptExecutor:
|
|||||||
self.add_message("execution_error", mes, broadcast=False)
|
self.add_message("execution_error", mes, broadcast=False)
|
||||||
|
|
||||||
def execute(self, prompt, prompt_id, extra_data={}, execute_outputs=[]):
|
def execute(self, prompt, prompt_id, extra_data={}, execute_outputs=[]):
|
||||||
asyncio_loop = asyncio.new_event_loop()
|
|
||||||
asyncio.set_event_loop(asyncio_loop)
|
|
||||||
asyncio.run(self.execute_async(prompt, prompt_id, extra_data, execute_outputs))
|
asyncio.run(self.execute_async(prompt, prompt_id, extra_data, execute_outputs))
|
||||||
|
|
||||||
async def execute_async(self, prompt, prompt_id, extra_data={}, execute_outputs=[]):
|
async def execute_async(self, prompt, prompt_id, extra_data={}, execute_outputs=[]):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user