Skip to content

Commit

Permalink
Merge pull request #997 from mrpalide/fixbug/panic-on-visor-shutdown
Browse files Browse the repository at this point in the history
Fixbug/panic on visor shutdown
  • Loading branch information
jdknives authored Nov 11, 2021
2 parents de04612 + e6e7a35 commit 7fda94d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/visor/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,9 @@ func (v *Visor) Summary() (*Summary, error) {

dmsgStatValue := &dmsgtracker.DmsgClientSummary{}
if v.trackers != nil {
dmsgStatValue = &v.trackers.GetBulk([]cipher.PubKey{v.conf.PK})[0]
if dmsgTracker := v.trackers.GetBulk([]cipher.PubKey{v.conf.PK}); len(dmsgTracker) > 0 {
dmsgStatValue = &dmsgTracker[0]
}
}

summary := &Summary{
Expand Down

0 comments on commit 7fda94d

Please sign in to comment.