From fccf061d46394c0feb21c8b7743eb57530024653 Mon Sep 17 00:00:00 2001 From: M1xA Date: Wed, 8 Apr 2026 22:24:01 +0300 Subject: [PATCH] fix(app): derive shutdown context from `context.Background()` instead of cancelled `globalCtx` (#2242) --- internal/app/app.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/app/app.go b/internal/app/app.go index 890b1ce7765728f78adba8c47a4bbbe87c29131c..987d0ec06022a45c6c472046db652d1d27241cc3 100644 --- a/internal/app/app.go +++ b/internal/app/app.go @@ -607,7 +607,7 @@ func (app *App) Shutdown() { var wg sync.WaitGroup // Shared shutdown context for all timeout-bounded cleanup. - shutdownCtx, cancel := context.WithTimeout(context.WithoutCancel(app.globalCtx), 5*time.Second) + shutdownCtx, cancel := context.WithTimeout(context.Background(), 5*time.Second) defer cancel() // Send exit event