Skip to content

Commit 2bd8fe8

Browse files
author
Mike Slattery
authored
re-arrange
1 parent b4e1623 commit 2bd8fe8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/pg-pool/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ class Pool extends EventEmitter {
104104
return
105105
}
106106
// 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)) {
107+
if (this.ending && (!this._pendingQueue.length || this.force)) {
108108
this.log('pulse queue on ending')
109109
if (this._idle.length) {
110110
this._idle.slice().map((item) => {

0 commit comments

Comments
 (0)