1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-04 18:29:17 +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:
Simo Kinnunen 2019-09-11 23:30:30 +09:00
parent 345ba4d8a8
commit 89f2f7d39b

View file

@ -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)