diff options
author | Valery Piashchynski <[email protected]> | 2020-12-14 13:54:44 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2020-12-14 13:54:44 +0300 |
commit | f6063d06d3a381036abd672dfbb799d777455fb0 (patch) | |
tree | 2370c6e2263fd286d8fe412de951304df69f9806 /static_pool.go | |
parent | 00b42663891713f142a6cc67bcccdc31353daeb2 (diff) |
fix tests issues
Diffstat (limited to 'static_pool.go')
-rwxr-xr-x | static_pool.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/static_pool.go b/static_pool.go index 3b5ed00c..fbb2e5e8 100755 --- a/static_pool.go +++ b/static_pool.go @@ -163,7 +163,7 @@ func (sp *StaticPool) Exec(p Payload) (Payload, error) { // worker want's to be terminated // TODO careful with string(rsp.Context) - if rsp.Body == nil && rsp.Context != nil && string(rsp.Context) == StopRequest { + if len(rsp.Body) == 0 && string(rsp.Context) == StopRequest { sw.State().Set(StateInvalid) err = sw.Stop(bCtx) if err != nil { |