1
0
Fork 0
mirror of https://github.com/postmannen/ctrl.git synced 2024-12-14 12:37:31 +00:00

fixed to early wg.done in request method

This commit is contained in:
postmannen 2022-04-20 19:14:24 +02:00
parent c48c7bf196
commit 1aca36485a

View file

@ -1749,7 +1749,7 @@ func (m methodREQCliCommandCont) handler(proc process, message Message, node str
proc.processes.wg.Add(1)
go func() {
proc.processes.wg.Done()
defer proc.processes.wg.Done()
cmd := exec.CommandContext(ctx, c, a...)