diff --git a/api/server/router/system/system_routes.go b/api/server/router/system/system_routes.go index 62060a4ccf..8f6aecd77a 100644 --- a/api/server/router/system/system_routes.go +++ b/api/server/router/system/system_routes.go @@ -123,7 +123,7 @@ func (s *systemRouter) getEvents(ctx context.Context, w http.ResponseWriter, r * if !onlyPastEvents { dur := until.Sub(now) - timeout = time.NewTimer(dur).C + timeout = time.After(dur) } }