Skip to content

Commit

Permalink
Fix bug in hook
Browse files Browse the repository at this point in the history
  • Loading branch information
hzyitc committed Dec 6, 2021
1 parent 0105f5e commit 52811bb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,13 @@ func runHook(event string, errmsg string, port string, addr string) {
log.Error("Run hook error:", err.Error())
return
}

go func() {
err = cmd.Wait()
if err != nil {
log.Error("Wait hook error:", err.Error())
}
}()
}

func main() {
Expand Down

0 comments on commit 52811bb

Please sign in to comment.