diff options
author | Wolfy-J <[email protected]> | 2019-05-02 17:17:16 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2019-05-02 17:17:16 +0300 |
commit | 7bd5da5327e0d6f602627006d55cf803b8c4a4c7 (patch) | |
tree | 2e76fba4b391e2733a6e59c8149bb22f6c91dfbc /worker.go | |
parent | 859441b4d084babca70266bd23ceb2a95269b3ff (diff) |
fixing tests
Diffstat (limited to 'worker.go')
-rw-r--r-- | worker.go | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -192,6 +192,10 @@ func (w *Worker) Exec(rqs *Payload) (rsp *Payload, err error) { return rsp, err } +func (w *Worker) markDestroying() { + w.state.set(StateDestroying) +} + func (w *Worker) start() error { if err := w.cmd.Start(); err != nil { close(w.waitDone) |