Skip to content

Commit

Permalink
Merge pull request #16 from utilitywarehouse/avoid-runner-init-stuck
Browse files Browse the repository at this point in the history
Avoid stucking on Runners Run() func
  • Loading branch information
ffilippopoulos authored Jul 29, 2021
2 parents 13026b0 + 0f05727 commit 8b495d7
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,11 @@ func main() {
}
wgDeviceNames = append(wgDeviceNames, wgDeviceName)
runners = append(runners, r)
if err := r.Run(); err != nil {
log.Logger.Error("Failed to start runner", "err", err)
os.Exit(1)
}
go func() {
if err := r.Run(); err != nil {
log.Logger.Error("Failed to start runner", "err", err)
}
}()
}

wgMetricsClient, err := wgctrl.New()
Expand Down

0 comments on commit 8b495d7

Please sign in to comment.