Explicitly resume stream after adding listener

This commit is contained in:
Simon Detheridge 2020-02-11 16:39:03 +00:00
parent 6dcf351377
commit 304fdfd35c

View file

@ -36,6 +36,7 @@ function streamToString(stream) {
stream.on('data', chunk => chunks.push(chunk))
stream.on('error', reject)
stream.on('end', () => resolve(Buffer.concat(chunks).toString('utf8')))
stream.resume()
})
}