diff --git a/internal/service/token_getter.go b/internal/service/token_getter.go index f1d273f..5ce8b26 100644 --- a/internal/service/token_getter.go +++ b/internal/service/token_getter.go @@ -69,10 +69,8 @@ func (tg *TokenManager) Start(ctx context.Context) error { tg.updateTokenFromPowerFlex() timer.Reset(tg.Config.TokenRefreshInterval) case <-tg.done: - timer.Stop() return nil case <-ctx.Done(): - timer.Stop() return ctx.Err() } }