From 7607f330a9c96d7c123b0ad590a2242c403817ae Mon Sep 17 00:00:00 2001 From: Gabriel mermelstein Date: Tue, 15 Jul 2025 13:45:40 +0200 Subject: [PATCH] fix: libsds received signal --- library/sds_thread/sds_thread.nim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/library/sds_thread/sds_thread.nim b/library/sds_thread/sds_thread.nim index 4a2cce5..8f23840 100644 --- a/library/sds_thread/sds_thread.nim +++ b/library/sds_thread/sds_thread.nim @@ -41,13 +41,13 @@ proc runSds(ctx: ptr SdsContext) {.async.} = error "sds thread could not receive a request" continue + ## Handle the request + asyncSpawn SdsThreadRequest.process(request, addr rm) + let fireRes = ctx.reqReceivedSignal.fireSync() if fireRes.isErr(): error "could not fireSync back to requester thread", error = fireRes.error - ## Handle the request - asyncSpawn SdsThreadRequest.process(request, addr rm) - proc run(ctx: ptr SdsContext) {.thread.} = ## Launch sds worker waitFor runSds(ctx)