Merge pull request #3808 from weaveworks/stop-switch-fwd
router: tell goroutine to exit when forwarder is stopped
This commit is contained in:
1 file changed
+1
@@ -452,6 +452,7 @@ func (fwd *overlaySwitchForwarder) Stop() {
|
|||||||
fwd.lock.Lock()
|
fwd.lock.Lock()
|
||||||
defer fwd.lock.Unlock()
|
defer fwd.lock.Unlock()
|
||||||
fwd.stopFrom(0)
|
fwd.stopFrom(0)
|
||||||
|
close(fwd.stopChan)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (fwd *overlaySwitchForwarder) ControlMessage(tag byte, msg []byte) {
|
func (fwd *overlaySwitchForwarder) ControlMessage(tag byte, msg []byte) {
|
||||||
|
|||||||
Reference in new issue
Block a user