Skip to content
Browse files

Destination must get a pipe event before nextTick

  • Loading branch information...
1 parent d9aff72 commit 6405d3853f6b579fa9c591fe10575f541f765b96 @mikeal committed Jul 8, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 main.js
View
1 main.js
@@ -176,6 +176,7 @@ util.inherits(File, stream.Stream)
File.prototype.pipe = function (dest, options) {
this.dest = dest
this.destOptions = options
+ dest.emit('pipe', this)
// stream.Stream.prototype.pipe.call(this, dest, options)
}
File.prototype.write = function (chunk, encoding) {

0 comments on commit 6405d38

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