Skip to content

Commit

Permalink
https://github.com/sevlyar/go-daemon/issues/103
Browse files Browse the repository at this point in the history
  • Loading branch information
NorseGaud committed Jul 23, 2024
1 parent 0c35c8c commit b4b1cc3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions daemon_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,10 @@ func (d *Context) parent() (child *os.Process, err error) {
encoder := json.NewEncoder(d.wpipe)
err = encoder.Encode(d)

// wait for worker to start running or else network calls fail: https://github.com/sevlyar/go-daemon/issues/100
time.Sleep(2 * time.Second)
// wait for worker to start running or else network calls fail:
// // https://github.com/sevlyar/go-daemon/issues/100
// // https://github.com/sevlyar/go-daemon/issues/103
time.Sleep(5 * time.Second)

return
}
Expand Down

0 comments on commit b4b1cc3

Please sign in to comment.