fix: libwaku received signal (#3507)

This commit is contained in:
gabrielmer 2025-07-15 14:43:05 +02:00 committed by GitHub
parent 1ba1ea0644
commit 849c7b425c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -170,13 +170,13 @@ proc wakuThreadBody(ctx: ptr WakuContext) {.thread.} =
error "waku thread could not receive a request"
continue
## Handle the request
asyncSpawn WakuThreadRequest.process(request, addr waku)
let fireRes = ctx.reqReceivedSignal.fireSync()
if fireRes.isErr():
error "could not fireSync back to requester thread", error = fireRes.error
## Handle the request
asyncSpawn WakuThreadRequest.process(request, addr waku)
waitFor wakuRun(ctx)
proc createWakuContext*(): Result[ptr WakuContext, string] =