summaryrefslogtreecommitdiff
path: root/static_pool.go
diff options
context:
space:
mode:
Diffstat (limited to 'static_pool.go')
-rw-r--r--static_pool.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/static_pool.go b/static_pool.go
index cc2b38ab..07c71c46 100644
--- a/static_pool.go
+++ b/static_pool.go
@@ -203,7 +203,7 @@ func (p *StaticPool) createWorker() (*Worker, error) {
err := w.Wait()
// worker have died unexpectedly, pool should attempt to replace it with alive version safely
- if w.state.Value() != StateStopped {
+ if w.state.Value() == StateErrored {
if err != nil {
p.throw(EventWorkerError, WorkerError{Worker: w, Caused: err})
}