summaryrefslogtreecommitdiff
path: root/worker.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2019-05-02 17:17:16 +0300
committerWolfy-J <[email protected]>2019-05-02 17:17:16 +0300
commit7bd5da5327e0d6f602627006d55cf803b8c4a4c7 (patch)
tree2e76fba4b391e2733a6e59c8149bb22f6c91dfbc /worker.go
parent859441b4d084babca70266bd23ceb2a95269b3ff (diff)
fixing tests
Diffstat (limited to 'worker.go')
-rw-r--r--worker.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/worker.go b/worker.go
index c52960b2..04b58e49 100644
--- a/worker.go
+++ b/worker.go
@@ -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)