From 31cf040029eb0b26278e4a9948cbc1aba77ed58b Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Tue, 31 Aug 2021 14:59:28 +0300 Subject: Naming: service -> plugin Fix bug with survived workers in the debug mode Signed-off-by: Valery Piashchynski --- pkg/pool/static_pool.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'pkg/pool/static_pool.go') 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) -- cgit v1.2.3