repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge dependabot/npm_and_yarn/examples/typescript/http-server-pool/fastify-worker_thr...
[poolifier.git]
/
src
/
pools
/
thread
/
dynamic.ts
diff --git
a/src/pools/thread/dynamic.ts
b/src/pools/thread/dynamic.ts
index fde371048c5755c77736c6a25545fe19aa90df8d..8e795512694aa41a2ea82b9c727e3ebd348b01c9 100644
(file)
--- a/
src/pools/thread/dynamic.ts
+++ b/
src/pools/thread/dynamic.ts
@@
-40,10
+40,7
@@
export class DynamicThreadPool<
/** @inheritDoc */
protected shallCreateDynamicWorker (): boolean {
/** @inheritDoc */
protected shallCreateDynamicWorker (): boolean {
- return (
- (!this.full && this.internalBusy()) ||
- (this.minimumNumberOfWorkers === 0 && this.workerNodes.length === 0)
- )
+ return (!this.full && this.internalBusy()) || this.empty
}
/** @inheritDoc */
}
/** @inheritDoc */