From ace2930a4458ae8524f2ce38203520fa4e186ef8 Mon Sep 17 00:00:00 2001 From: qydysky Date: Thu, 9 Nov 2023 06:50:55 +0800 Subject: [PATCH] 1 --- ctx/Ctx.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ctx/Ctx.go b/ctx/Ctx.go index 64dc8d2..67c04d0 100644 --- a/ctx/Ctx.go +++ b/ctx/Ctx.go @@ -94,7 +94,7 @@ func WaitCtx(ctx context.Context) (dctx context.Context, done func()) { func Done(ctx context.Context) bool { if ctx == nil { - return false + return true } select { case <-ctx.Done(): -- 2.39.2