We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4e1623 commit 2bd8fe8Copy full SHA for 2bd8fe8
packages/pg-pool/index.js
@@ -104,7 +104,7 @@ class Pool extends EventEmitter {
104
return
105
}
106
// remove clients from pool if pool is ending and there are no pending queries or if force is enabled
107
- if (this.ending && (this.force || !this._pendingQueue.length)) {
+ if (this.ending && (!this._pendingQueue.length || this.force)) {
108
this.log('pulse queue on ending')
109
if (this._idle.length) {
110
this._idle.slice().map((item) => {
0 commit comments