diff --git a/server/context.go b/server/context.go index c7b08b93..627caa54 100644 --- a/server/context.go +++ b/server/context.go @@ -10,7 +10,10 @@ func wait(ctx context.Context) bool { if ctx == nil { return false } - wait, _ := ctx.Value("wait").(bool) + wait, ok := ctx.Value("wait").(bool) + if !ok { + return false + } return wait }