diff options
author | Wolfy-J <[email protected]> | 2019-12-23 15:20:57 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2019-12-23 15:20:57 +0300 |
commit | d39e20a58c8a40eefe6e5d6761f78f38f024b46e (patch) | |
tree | cd4f7f514cc1b735bef07f0228e7f41bf52c5d8d /worker.go | |
parent | 1d225f1e88d176c955111d2a033ab0f14834f93e (diff) |
- check before erasing unix sock
Diffstat (limited to 'worker.go')
-rw-r--r-- | worker.go | 9 |
1 files changed, 0 insertions, 9 deletions
@@ -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 |