mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-07-13 08:36:58 +08:00
Merge d35d4f0b926209ff90af23dcdd1f1369a6106ada into 519c9411653df99761053c30e101816e0ca3c24b
This commit is contained in:
commit
1dd3061ec5
@ -1,5 +1,6 @@
|
||||
import os
|
||||
import sys
|
||||
import time
|
||||
import asyncio
|
||||
import traceback
|
||||
import time
|
||||
@ -1021,6 +1022,8 @@ class PromptServer():
|
||||
await send_socket_catch_exception(self.sockets[sid].send_json, message)
|
||||
|
||||
def send_sync(self, event, data, sid=None):
|
||||
if isinstance(data, dict):
|
||||
data["happen_at"] = time.time()
|
||||
self.loop.call_soon_threadsafe(
|
||||
self.messages.put_nowait, (event, data, sid))
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user