on main help sign in
fix(app): derive shutdown context from `context.Background()` instead of cancelled `globalCtx` (#2242)
fccf061M1xA
internal/app/app.go+1−1
@@ -607,7 +607,7 @@ func (app *App) Shutdown() {
607 var wg sync.WaitGroup
607 var wg sync.WaitGroup
608
608
609 // Shared shutdown context for all timeout-bounded cleanup.
609 // 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)
611 defer cancel()
611 defer cancel()
612
612
613 // Send exit event
613 // Send exit event