| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent a040031 commit 9d2c977
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -168,7 +168,7 @@ class Pool extends EventEmitter { | |||
| 168 | 168 | const result = response.result | |
| 169 | 169 | ||
| 170 | 170 | // if we don't have to connect a new client, don't do so | |
| 171 | - if (this._clients.length >= this.options.max || this._idle.length) { | ||
| 171 | + if (this._isFull() || this._idle.length) { | ||
| 172 | 172 | // if we have idle clients schedule a pulse immediately | |
| 173 | 173 | if (this._idle.length) { | |
| 174 | 174 | process.nextTick(() => this._pulseQueue()) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments