Skip to content

Commit

Permalink
Shuts down flooder when either Serf is shut down.
Browse files Browse the repository at this point in the history
  • Loading branch information
slackpad committed Mar 15, 2017
1 parent 6525a85 commit 6b02a4d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion consul/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 6b02a4d

Please sign in to comment.