mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Explicitly resume stream after adding listener
This commit is contained in:
parent
6dcf351377
commit
304fdfd35c
1 changed files with 1 additions and 0 deletions
|
@ -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()
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue