From 1ce89a4a0b1be58e3bf4dbcd1b7ec3d695ac36a2 Mon Sep 17 00:00:00 2001 From: Fabian Reinartz Date: Tue, 22 Sep 2015 09:04:31 +0200 Subject: [PATCH] Fix nil panic on consul error --- retrieval/discovery/consul.go | 1 + 1 file changed, 1 insertion(+) diff --git a/retrieval/discovery/consul.go b/retrieval/discovery/consul.go index 7f9e7efa7..8cca11c03 100644 --- a/retrieval/discovery/consul.go +++ b/retrieval/discovery/consul.go @@ -195,6 +195,7 @@ func (cd *ConsulDiscovery) watchServices(update chan<- *consulService, done <-ch if err != nil { log.Errorf("Error refreshing service list: %s", err) time.Sleep(consulRetryInterval) + continue } // If the index equals the previous one, the watch timed out with no update. if meta.LastIndex == lastIndex {