Skip to content

Commit 52811bb

Browse files
committed
Fix bug in hook
1 parent 0105f5e commit 52811bb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

main.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,13 @@ func runHook(event string, errmsg string, port string, addr string) {
108108
log.Error("Run hook error:", err.Error())
109109
return
110110
}
111+
112+
go func() {
113+
err = cmd.Wait()
114+
if err != nil {
115+
log.Error("Wait hook error:", err.Error())
116+
}
117+
}()
111118
}
112119

113120
func main() {

0 commit comments

Comments
 (0)