Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit 213c3910f03484de9f943b2664e4fc2d0eb87881 1 parent 9585d57
Hendrik Schnepel authored

Showing 1 changed file with 6 additions and 1 deletion. Show diff stats Hide diff stats

  1. +6 1 lib/couchdb.js
7 lib/couchdb.js
@@ -619,7 +619,12 @@ Db.prototype.changesStream = function(query, options) {
619 619 });
620 620
621 621 stream.close = function() {
622   - return client.destroy();
  622 + if (request.abort) {
  623 + return request.abort();
  624 + }
  625 + else {
  626 + return client.destroy();
  627 + }
623 628 };
624 629
625 630 return stream;

0 comments on commit 213c391

Please sign in to comment.
Something went wrong with that request. Please try again.