Skip to content

Commit

Permalink
Channel: call both end() and close() on destroy
Browse files Browse the repository at this point in the history
  • Loading branch information
mscdex committed May 2, 2021
1 parent 3d0d5db commit f13a096
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Channel.js
Expand Up @@ -212,6 +212,7 @@ class Channel extends DuplexStream {
}

destroy() {
this.end();
this.close();
}

Expand Down

0 comments on commit f13a096

Please sign in to comment.