Skip to content

Commit

Permalink
only stop networkTopology when it is not nil (#2995)
Browse files Browse the repository at this point in the history
  • Loading branch information
realityone authored Jan 4, 2024
1 parent f1584cf commit dbe835e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/daemon/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit dbe835e

Please sign in to comment.