summaryrefslogtreecommitdiff
path: root/worker.go
diff options
context:
space:
mode:
Diffstat (limited to 'worker.go')
-rw-r--r--worker.go9
1 files changed, 0 insertions, 9 deletions
diff --git a/worker.go b/worker.go
index 32f63554..33b9d496 100644
--- a/worker.go
+++ b/worker.go
@@ -6,7 +6,6 @@ import (
"github.com/spiral/goridge"
"os"
"os/exec"
- "runtime"
"strconv"
"strings"
"sync"
@@ -102,14 +101,6 @@ func (w *Worker) Wait() error {
w.mu.Lock()
defer w.mu.Unlock()
- if runtime.GOOS != "windows" {
- // windows handles processes and close pipes differently,
- // we can ignore wait here as process.Wait() already being handled above
- if err := w.cmd.Wait(); err != nil {
- return err
- }
- }
-
if w.endState.Success() {
w.state.set(StateStopped)
return nil