Skip to content

Commit dc518b5

Browse files
committed
release child processes
1 parent 7044ff5 commit dc518b5

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

deck.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ func executeCommand(cmd string) error {
214214
errorLogF("failed to execute '%s %s'", exe, args[1:])
215215
return e
216216
}
217-
return c.Wait()
217+
return c.Process.Release()
218218
}
219219

220220
// triggerAction triggers an action.
@@ -256,9 +256,7 @@ func (d *Deck) triggerAction(dev *streamdeck.Device, index uint8, hold bool) {
256256
executeDBusMethod(&a.DBus)
257257
}
258258
if a.Exec != "" {
259-
go func(a *ActionConfig) {
260-
errorLog(executeCommand(a.Exec), "failed to execute command")
261-
}(a)
259+
errorLog(executeCommand(a.Exec), "failed to execute command")
262260
}
263261
if a.Device != "" {
264262
switch {

0 commit comments

Comments
 (0)