Merge pull request #7556 from overleaf/em-finish-node-16
Finish Node 16 upgrade GitOrigin-RevId: 03e5a54e4b17f43142ff78f5b4cca4d0dbefe6eb
This commit is contained in:
@@ -238,7 +238,7 @@ module.exports = HttpController = {
|
||||
UpdatesManager.exportProject(
|
||||
project_id,
|
||||
function (err, { updates, userIds }, confirmWrite) {
|
||||
const abortStreaming = req.aborted || res.finished || res.destroyed
|
||||
const abortStreaming = req.destroyed || res.finished || res.destroyed
|
||||
if (abortStreaming) {
|
||||
// Tell the producer to stop emitting data
|
||||
if (confirmWrite) confirmWrite(new Error('stop'))
|
||||
|
||||
Reference in New Issue
Block a user