Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
indutny committed Mar 22, 2015
1 parent 1dd3af6 commit 0011c68
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/_stream_writable.js
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ function finishMaybe(stream, state) {
if (need) {
if (state.pendingcb === 0) {
prefinish(stream, state);
stream.flushed = true;
state.flushed = true;
state._end(stream, function(err) {
if (err)
stream.emit('error', err);
Expand Down
1 change: 1 addition & 0 deletions lib/net.js
Original file line number Diff line number Diff line change
Expand Up @@ -883,6 +883,7 @@ Socket.prototype.connect = function(options, cb) {
this._readableState.endEmitted = false;
this._writableState.ended = false;
this._writableState.ending = false;
this._writableState.flushed = false;
this._writableState.finished = false;
this._writableState.errorEmitted = false;
this.destroyed = false;
Expand Down

0 comments on commit 0011c68

Please sign in to comment.