diff options
author | Valery Piashchynski <[email protected]> | 2021-08-31 14:59:28 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-08-31 14:59:28 +0300 |
commit | 31cf040029eb0b26278e4a9948cbc1aba77ed58b (patch) | |
tree | 884dd2991acf12826752632b8321410e7cc923ce /pkg/pool | |
parent | 2f44878a7eac71d7b81e66246b46c615a95892d7 (diff) |
Naming: service -> plugin
Fix bug with survived workers in the debug mode
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'pkg/pool')
-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) |