Skip to content

Commit

Permalink
closed doneChan after check complete
Browse files Browse the repository at this point in the history
  • Loading branch information
1nv8rzim committed Sep 9, 2023
1 parent 26edef0 commit fa6242e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ func Run(ctx context.Context, target string, command string, expectedOutput stri

// run ping
go func() {
defer close(doneChan)
doneChan <- pinger.Run()
}()

Expand Down

0 comments on commit fa6242e

Please sign in to comment.