Merge pull request #3808 from weaveworks/stop-switch-fwd

router: tell goroutine to exit when forwarder is stopped
This commit is contained in:
Bryan Boreham authored and GitHub committed 2020-06-10 14:07:41 +01:00
commit 495bea8890
1 file changed
+1
+1
View File
@@ -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) {