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 f3b0ee4 commit 74babd3Copy full SHA for 74babd3
packages/pg-pool/index.js
@@ -137,7 +137,7 @@ class Pool extends EventEmitter {
137
const idleItem = this._idle.pop()
138
clearTimeout(idleItem.timeoutId)
139
const client = idleItem.client
140
- client.ref()
+ client.ref && client.ref()
141
const idleListener = idleItem.idleListener
142
143
return this._acquireClient(client, pendingItem, idleListener, false)
0 commit comments