summaryrefslogtreecommitdiff
path: root/worker.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2019-12-23 15:20:57 +0300
committerWolfy-J <[email protected]>2019-12-23 15:20:57 +0300
commitd39e20a58c8a40eefe6e5d6761f78f38f024b46e (patch)
treecd4f7f514cc1b735bef07f0228e7f41bf52c5d8d /worker.go
parent1d225f1e88d176c955111d2a033ab0f14834f93e (diff)
- check before erasing unix sock
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