diff --git a/client/daemon/daemon.go b/client/daemon/daemon.go index f05d461b292..c8c878ccff0 100644 --- a/client/daemon/daemon.go +++ b/client/daemon/daemon.go @@ -862,7 +862,9 @@ func (cd *clientDaemon) Stop() { logger.Errorf("announcer stop failed %s", err) } - cd.networkTopology.Stop() + if cd.networkTopology != nil { + cd.networkTopology.Stop() + } if err := cd.dynconfig.Stop(); err != nil { logger.Errorf("dynconfig client closed failed %s", err)