From 8535e38b947f6f8b5553c97e0eca7b2a4c91753d Mon Sep 17 00:00:00 2001 From: Gabriel mermelstein Date: Tue, 8 Jul 2025 11:53:02 +0300 Subject: [PATCH] await 30 seconds before starting watchdog --- library/waku_context.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/waku_context.nim b/library/waku_context.nim index 33db477b4..856a8e620 100644 --- a/library/waku_context.nim +++ b/library/waku_context.nim @@ -136,7 +136,7 @@ proc watchdogThreadBody(ctx: ptr WakuContext) {.thread.} = ## Watchdog thread that monitors the Waku thread and notifies the library user if it hangs. let watchdogRun = proc(ctx: ptr WakuContext) {.async.} = - return + await sleepAsync(30.seconds) # await for the node to get created const WatchdogTimeinterval = 1.seconds const WakuNotRespondingTimeout = 3.seconds while true: