mirror of https://github.com/status-im/consul.git
Shuts down flooder when either Serf is shut down.
This commit is contained in:
parent
b58faffeac
commit
d556d14154
|
@ -334,7 +334,10 @@ func NewServer(config *Config) (*Server, error) {
|
||||||
for {
|
for {
|
||||||
WAIT:
|
WAIT:
|
||||||
select {
|
select {
|
||||||
case <-s.shutdownCh:
|
case <-s.serfLAN.ShutdownCh():
|
||||||
|
return
|
||||||
|
|
||||||
|
case <-s.serfWAN.ShutdownCh():
|
||||||
return
|
return
|
||||||
|
|
||||||
case <-ticker.C:
|
case <-ticker.C:
|
||||||
|
|
Loading…
Reference in New Issue