Skip to content

Commit

Permalink
fixing #680
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaly-t committed Jan 12, 2020
1 parent 0ff2952 commit 7eca06a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/connect.js
Expand Up @@ -56,7 +56,7 @@ function poolConnect(ctx, db, config) {
useCount: client.$useCount,
release(kill) {
client.end = end;
client.release(kill || client.$connectionError);
client.release(kill || client.$connectionError || !client._queryable);
Events.disconnect(ctx, client);
client.removeListener('error', onError);
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "pg-promise",
"version": "10.3.4",
"version": "10.3.5",
"description": "PostgreSQL interface for Node.js",
"main": "lib/index.js",
"typings": "typescript/pg-promise.d.ts",
Expand Down

0 comments on commit 7eca06a

Please sign in to comment.