From dbe835ea26ad9cb80cc759076d7befbce07e8bdf Mon Sep 17 00:00:00 2001 From: realityone Date: Thu, 4 Jan 2024 13:20:18 +0800 Subject: [PATCH] only stop networkTopology when it is not nil (#2995) --- client/daemon/daemon.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)