summaryrefslogtreecommitdiff
path: root/worker.go
diff options
context:
space:
mode:
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 fb55eb57..88fd1b9b 100644
--- a/worker.go
+++ b/worker.go
@@ -193,8 +193,8 @@ func (w *Worker) Exec(rqs *Payload) (rsp *Payload, err error) {
return rsp, err
}
-func (w *Worker) markDisabled() {
- w.state.set(StateDisabled)
+func (w *Worker) markInvalid() {
+ w.state.set(StateInvalid)
}
func (w *Worker) start() error {