diff options
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 { |