Permalink
Browse files

Pass error to query handlers when connection is closed

  • Loading branch information...
Frans-Willem committed Aug 27, 2010
1 parent 70ed915 commit 9470bc25d249e8e99d3818397e670e788e0884f4
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/PostgresClient.js
View
@@ -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);

0 comments on commit 9470bc2

Please sign in to comment.