fix example for #26
This commit is contained in:
parent
3bd4c7a0c3
commit
e5d568971b
1 changed files with 2 additions and 1 deletions
|
@ -54,10 +54,11 @@ extract.on('entry', function(header, stream, callback) {
|
||||||
// stream is the content body (might be an empty stream)
|
// stream is the content body (might be an empty stream)
|
||||||
// call next when you are done with this entry
|
// call next when you are done with this entry
|
||||||
|
|
||||||
stream.resume() // just auto drain the stream
|
|
||||||
stream.on('end', function() {
|
stream.on('end', function() {
|
||||||
callback() // ready for next entry
|
callback() // ready for next entry
|
||||||
})
|
})
|
||||||
|
|
||||||
|
stream.resume() // just auto drain the stream
|
||||||
})
|
})
|
||||||
|
|
||||||
extract.on('finish', function() {
|
extract.on('finish', function() {
|
||||||
|
|
Loading…
Reference in a new issue