summaryrefslogtreecommitdiff
path: root/worker.go
diff options
context:
space:
mode:
authorAnton Titov <[email protected]>2019-12-23 15:53:51 +0300
committerGitHub <[email protected]>2019-12-23 15:53:51 +0300
commita11a3a5511a7b986f06c5921932e3438a0a543d7 (patch)
treece930d93d3f887da0a74c7bf0ce2b2c5173d1ca3 /worker.go
parent7f2909ffb746880a380dbc8b9d7f4257a5abca6c (diff)
parentb0c299387222c9a32b92a11abb30c85e5c7f4741 (diff)
Merge pull request #224 from spiral/feature/reuse-ports-and-test-improvements
Test improvements
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