summaryrefslogtreecommitdiff
path: root/worker.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-01-28 19:03:27 +0300
committerWolfy-J <[email protected]>2018-01-28 19:03:27 +0300
commitf606426f00e9ad59f078474d4005ec55d1f3d3a9 (patch)
tree646eb86088b210dd952b8e6b932abd8b91dedcf2 /worker.go
parent76d72becd1226d8d79ca592c89693a629dc54dec (diff)
CS
Diffstat (limited to 'worker.go')
-rw-r--r--worker.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/worker.go b/worker.go
index df97871e..cc37b69d 100644
--- a/worker.go
+++ b/worker.go
@@ -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")
}