fix(app): derive shutdown context from `context.Background()` instead of cancelled `globalCtx` (#2242)
commitfccf061d46394c0feb21c8b7743eb57530024653
authorM1xA <AnyCPU@users.noreply.github.com>
dateWed 8 Apr 2026, 22:24 (6 months ago)
parent85445d7
internal/app/app.go+1−1
@@ -607,7 +607,7 @@ func (app *App) Shutdown() {
607607 var wg sync.WaitGroup
608608
609609 // Shared shutdown context for all timeout-bounded cleanup.
610− shutdownCtx, cancel := context.WithTimeout(context.WithoutCancel(app.globalCtx), 5*time.Second)
610+ shutdownCtx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
611611 defer cancel()
612612
613613 // Send exit event