Skip to content

Commit

Permalink
WIP sync
Browse files Browse the repository at this point in the history
  • Loading branch information
mfreeman451 committed Feb 20, 2025
1 parent c33f195 commit 0e27121
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/agent/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ func (s *Server) Stop(ctx context.Context) error {
}

var stopErrors []error

for _, svc := range s.services {
if err := s.stopService(ctx, svc); err != nil {
stopErrors = append(stopErrors, err)
Expand Down
1 change: 1 addition & 0 deletions pkg/agent/snmp_checker.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ func NewSNMPChecker(address string) (checker.Checker, error) {

// Start the service with a background context and link it to the done channel
ctx, cancel := context.WithCancel(context.Background())

go func() {
// Tie the context cancellation to the done channel
select {
Expand Down

0 comments on commit 0e27121

Please sign in to comment.