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

router: tell goroutine to exit when forwarder is stopped #3808

Merged
merged 1 commit into from
Jun 10, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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