diff --git a/run.go b/run.go index 6093c78..7e14efe 100644 --- a/run.go +++ b/run.go @@ -169,9 +169,14 @@ func run() error { started <- err }(started) - err = <-started - if err != nil { - return err + // non-blocking channel receive. + select { + case err := <-started: + if err != nil { + return err + } + + default: } quit := make(chan os.Signal, 1)