fix: libsds received signal (#16)

This commit is contained in:
gabrielmer 2025-07-15 17:43:00 +02:00 committed by GitHub
parent 810b62896f
commit 8312df7b53
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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)