Fix shutdown crash with nil mesh router
This commit is contained in:
parent
029c70d6fe
commit
f64a419853
|
@ -238,8 +238,10 @@ func main() {
|
|||
|
||||
defer func() {
|
||||
close(stopc)
|
||||
// Stop receiving updates from router before shutting down.
|
||||
mrouter.Stop()
|
||||
if *meshListen != "" {
|
||||
// Stop receiving updates from router before shutting down.
|
||||
mrouter.Stop()
|
||||
}
|
||||
wg.Wait()
|
||||
}()
|
||||
|
||||
|
|
Loading…
Reference in New Issue