Skip to content

Commit

Permalink
wait until all lldp routines to finish
Browse files Browse the repository at this point in the history
  • Loading branch information
robertvolkmann committed Sep 26, 2023
1 parent 86f3556 commit bf54db7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/internal/core/phone-home.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ func (c *Core) ConstantlyPhoneHome(ctx context.Context, interval time.Duration)
})
c.phoneHome(ctx, msgs)
case <-ctx.Done():
// wait until all lldp routines to finish
discoveryResultChanWG.Wait()
return
}
}
Expand Down

0 comments on commit bf54db7

Please sign in to comment.