fix(app): derive shutdown context from `context.Background()` instead of cancelled `globalCtx` (#2242)
M1xA
created
Change summary
internal/app/app.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Detailed changes
@@ -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