Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #3808 from weaveworks/stop-switch-fwd
Browse files Browse the repository at this point in the history
router: tell goroutine to exit when forwarder is stopped
  • Loading branch information
bboreham authored Jun 10, 2020
2 parents 3d79b07 + 27f8f90 commit 495bea8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions router/overlay_switch.go
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,7 @@ func (fwd *overlaySwitchForwarder) Stop() {
fwd.lock.Lock()
defer fwd.lock.Unlock()
fwd.stopFrom(0)
close(fwd.stopChan)
}

func (fwd *overlaySwitchForwarder) ControlMessage(tag byte, msg []byte) {
Expand Down

0 comments on commit 495bea8

Please sign in to comment.