Ignore pool error when worker is already not the part of the pool.
@@ -542,7 +542,11 @@ final class WorkerSpawnRunner implements SpawnRunner {
}
} finally {
if (w != null) {
+ try {
workers.returnObject(key, w);
+ } catch (IllegalStateException e3) {
+ // The worker already not part of the pool
+ }
}
}
},
