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.
2 parents 5a61b56 + ffc7551 commit e912b62Copy full SHA for e912b62
index.js
@@ -191,7 +191,7 @@ module.exports = (params) => {
191
client.destroy() // destroy connection on timeout
192
resetClient() // reset the client
193
reject(err) // reject the promise with the error
194
- } else if (err && /^PROTOCOL_ENQUEUE_AFTER_/.test(err.code)) {
+ } else if (err && (/^PROTOCOL_ENQUEUE_AFTER_/.test(err.code) || err.code === 'PROTOCOL_CONNECTION_LOST')) {
195
196
return resolve(query(...args)) // attempt the query again
197
} else if (err) {
0 commit comments