summaryrefslogtreecommitdiff
path: root/static_pool.go
diff options
context:
space:
mode:
Diffstat (limited to 'static_pool.go')
-rwxr-xr-xstatic_pool.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/static_pool.go b/static_pool.go
index b626a499..3b5ed00c 100755
--- a/static_pool.go
+++ b/static_pool.go
@@ -162,6 +162,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 {
sw.State().Set(StateInvalid)
err = sw.Stop(bCtx)