Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix for client.destroy having no effect on node v0.4.12

  • Loading branch information...
commit 213c3910f03484de9f943b2664e4fc2d0eb87881 1 parent 9585d57
Hendrik Schnepel authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 lib/couchdb.js
View
7 lib/couchdb.js
@@ -619,7 +619,12 @@ Db.prototype.changesStream = function(query, options) {
});
stream.close = function() {
- return client.destroy();
+ if (request.abort) {
+ return request.abort();
+ }
+ else {
+ return client.destroy();
+ }
};
return stream;
Please sign in to comment.
Something went wrong with that request. Please try again.