diff --git a/cmd/root.go b/cmd/root.go index 3b5c0939eada3797d5b59b97a771e695a242b74c..bd6a917cd782c04b84d4f57cc8db2b028f096ba1 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -105,12 +105,9 @@ var rootCmd = &cobra.Command{ loopDelay, killChan, errChan) // Wait forever to prevent process from ending - select { - case err := <-errChan: - jww.ERROR.Println(err) - goto Setup - default: - } + err = <-errChan + jww.ERROR.Println(err) + goto Setup }, }