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