summaryrefslogtreecommitdiff
path: root/lib/_stream_writable.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/_stream_writable.js')
-rw-r--r--lib/_stream_writable.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/_stream_writable.js b/lib/_stream_writable.js
index 154c87bf5c..33c680cb5b 100644
--- a/lib/_stream_writable.js
+++ b/lib/_stream_writable.js
@@ -297,7 +297,6 @@ Writable.prototype.uncork = function() {
if (!state.writing &&
!state.corked &&
- !state.finished &&
!state.bufferProcessing &&
state.bufferedRequest)
clearBuffer(this, state);
@@ -569,7 +568,7 @@ Writable.prototype.end = function(chunk, encoding, cb) {
}
// ignore unnecessary end() calls.
- if (!state.ending && !state.finished)
+ if (!state.ending)
endWritable(this, state, cb);
};