diff --git a/controller.go b/controller.go index a9bfa2493040ddb4f4b06fbe84e33ebdad308903..ed28c31be19a7864f52f63cd00188be24e98c819 100644 --- a/controller.go +++ b/controller.go @@ -124,13 +124,11 @@ func Run(ctx context.Context) error { return initError } log.WithFields(log.Fields{}).Info("initialisation finished") - for { - select { - case <-c.stopChan: - return shutdown() - case <-ctx.Done(): - return shutdown() - } + select { + case <-c.stopChan: + return shutdown() + case <-ctx.Done(): + return shutdown() } }