mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 07:53:22 +02:00
Make sure we try to read as soon as possible. Otherwise we may miss a chunk if timing is off.
This commit is contained in:
@@ -36,6 +36,8 @@ module.exports.readAll = function(stream) {
|
||||
stream.on('readable', readableListener)
|
||||
stream.on('end', endListener)
|
||||
|
||||
readableListener()
|
||||
|
||||
return resolver.promise.finally(function() {
|
||||
stream.removeListener('error', errorListener)
|
||||
stream.removeListener('readable', readableListener)
|
||||
|
||||
Reference in New Issue
Block a user