Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Pass error to query handlers when connection is closed

  • Loading branch information...
commit 9470bc25d249e8e99d3818397e670e788e0884f4 1 parent 70ed915
@Frans-Willem authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  lib/PostgresClient.js
View
1  lib/PostgresClient.js
@@ -197,6 +197,7 @@ function createSocketHandlers(self,unbindSocket,connectBlock) {
self.closed=true;
self.emit("end");
}
+ onError(new Error("Connection closed"));
}
function onSocketError(err) {
onError(err);
Please sign in to comment.
Something went wrong with that request. Please try again.