Skip to content

Commit

Permalink
Merge 13b5523 into 4f27266
Browse files Browse the repository at this point in the history
  • Loading branch information
mwoc committed Sep 11, 2015
2 parents 4f27266 + 13b5523 commit b029d1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,10 +221,10 @@ function readStream(stream, encoding, length, limit, callback) {
: []

stream.on('aborted', onAborted)
stream.on('data', onData)
stream.once('end', onEnd)
stream.once('error', onEnd)
stream.once('close', cleanup)
stream.on('data', onData)

function done(err) {
cleanup()
Expand Down

0 comments on commit b029d1d

Please sign in to comment.