diff --git a/src/github.com/kelseyhightower/confd/resource/template/processor.go b/src/github.com/kelseyhightower/confd/resource/template/processor.go index 24cfcac21..5eb0d7798 100644 --- a/src/github.com/kelseyhightower/confd/resource/template/processor.go +++ b/src/github.com/kelseyhightower/confd/resource/template/processor.go @@ -45,12 +45,12 @@ func IntervalProcessor(config Config, stopChan, doneChan chan bool, errChan chan func (p *intervalProcessor) Process() { defer close(p.doneChan) - ts, err := getTemplateResources(p.config) - if err != nil { - log.Fatal(err.Error()) - return - } for { + ts, err := getTemplateResources(p.config) + if err != nil { + log.Fatal(err.Error()) + break + } process(ts) select { case <-p.stopChan: