Shuts down flooder when either Serf is shut down.

This commit is contained in:
James Phillips 2017-03-15 15:27:40 -07:00
parent 0cf9cf22ad
commit 9176e77111
No known key found for this signature in database
GPG Key ID: 77183E682AC5FC11
1 changed files with 4 additions and 1 deletions

View File

@ -334,7 +334,10 @@ func NewServer(config *Config) (*Server, error) {
for {
WAIT:
select {
case <-s.shutdownCh:
case <-s.serfLAN.ShutdownCh():
return
case <-s.serfWAN.ShutdownCh():
return
case <-ticker.C: