Skip to content

Commit

Permalink
Handle streams without a resume method
Browse files Browse the repository at this point in the history
Closes #9
  • Loading branch information
bendrucker committed Jun 8, 2016
1 parent a6368ff commit 21cb52e
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 @@ -15,7 +15,7 @@ function fromReadable (stream) {
var promise = toArray(stream)

// Ensure stream is in flowing mode
stream.resume()
if (stream.resume) stream.resume()

return promise
.then(function concat (parts) {
Expand Down

0 comments on commit 21cb52e

Please sign in to comment.