From 12ad26e0fc55e5a06db3d297078009a92d2b6910 Mon Sep 17 00:00:00 2001 From: James Phillips Date: Tue, 9 Aug 2016 11:33:42 -0700 Subject: [PATCH] Tweaks select style. --- consul/acl_replication.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/consul/acl_replication.go b/consul/acl_replication.go index 3b767edb0b..57ffce2555 100644 --- a/consul/acl_replication.go +++ b/consul/acl_replication.go @@ -281,9 +281,10 @@ func (s *Server) runACLReplication() { // Give each server's replicator a random initial phase for good // measure. select { - case <-time.After(lib.RandomStagger(s.config.ACLReplicationInterval)): case <-s.shutdownCh: return + + case <-time.After(lib.RandomStagger(s.config.ACLReplicationInterval)): } // We are fairly conservative with the lastRemoteIndex so that after a