fix: libsds received signal

This commit is contained in:
Gabriel mermelstein 2025-07-15 13:45:40 +02:00
parent 810b62896f
commit 7607f330a9
No known key found for this signature in database
GPG Key ID: 82B8134785FEAE0D

View File

@ -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)