This commit is contained in:
qwertzman-png 2023-04-21 00:23:16 +02:00 committed by GitHub
parent ae4df2aa34
commit 9fb4f17731
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -299,6 +299,7 @@ class PromptServer():
await self.sockets[sid].send_str(message)
def send_sync(self, event, data, sid=None):
self.poll_messages.append({"type": event, "data": data, "sid": sid, "poll_id": poll_id++})
self.loop.call_soon_threadsafe(
self.messages.put_nowait, (event, data, sid))