diff options
Diffstat (limited to 'pkg/pool/static_pool.go')
-rwxr-xr-x | pkg/pool/static_pool.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkg/pool/static_pool.go b/pkg/pool/static_pool.go index 720ca9da..7e190846 100755 --- a/pkg/pool/static_pool.go +++ b/pkg/pool/static_pool.go @@ -329,7 +329,9 @@ func (sp *StaticPool) execDebug(p *payload.Payload) (*payload.Payload, error) { return nil, errors.E(op, err) } - err = sw.Stop() + // destroy the worker + sw.State().Set(worker.StateDestroyed) + err = sw.Kill() if err != nil { sp.events.Push(events.WorkerEvent{Event: events.EventWorkerError, Worker: sw, Payload: err}) return nil, errors.E(op, err) |