Skip to content
This repository has been archived by the owner on Feb 25, 2020. It is now read-only.

Commit

Permalink
closes #38
Browse files Browse the repository at this point in the history
  • Loading branch information
olegp committed May 16, 2012
1 parent 0f89c45 commit 33927fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/io.js
Expand Up @@ -296,7 +296,7 @@ Stream.prototype.close = function() {
* @function
*/
Stream.prototype.closed = function() {
if(this.stream && (!this.stream.readable && !this.stream.writable)) {
if(this.stream && (this.stream.readable || this.stream.writable)) {
this.close();
}
return !this.stream;
Expand Down

0 comments on commit 33927fe

Please sign in to comment.