diff options
author | Wolfy-J <[email protected]> | 2018-01-28 19:03:27 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2018-01-28 19:03:27 +0300 |
commit | f606426f00e9ad59f078474d4005ec55d1f3d3a9 (patch) | |
tree | 646eb86088b210dd952b8e6b932abd8b91dedcf2 /worker.go | |
parent | 76d72becd1226d8d79ca592c89693a629dc54dec (diff) |
CS
Diffstat (limited to 'worker.go')
-rw-r--r-- | worker.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -126,7 +126,7 @@ func (w *Worker) Stop() error { defer w.mu.Unlock() w.state.set(StateInactive) - err := sendHead(w.rl, &stopCommand{Stop: true}) + err := sendPayload(w.rl, &stopCommand{Stop: true}) <-w.waitDone return err @@ -209,7 +209,7 @@ func (w *Worker) start() error { } func (w *Worker) execPayload(rqs *Payload) (rsp *Payload, err error) { - if err := sendHead(w.rl, rqs.Context); err != nil { + if err := sendPayload(w.rl, rqs.Context); err != nil { return nil, errors.Wrap(err, "header error") } |