mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 14:43:46 +01:00
fixed bug where file uploader was calling cb on read stream not write stream, race condition created.
This commit is contained in:
@@ -13,7 +13,7 @@ module.exports =
|
||||
uri: @_buildUrl(project_id, file_id)
|
||||
writeStream = request(opts)
|
||||
readStream.pipe writeStream
|
||||
readStream.on "end", callback
|
||||
writeStream.on "end", callback
|
||||
readStream.on "error", (err)->
|
||||
logger.err err:err, project_id:project_id, file_id:file_id, fsPath:fsPath, "something went wrong on the read stream of uploadFileFromDisk"
|
||||
callback err
|
||||
|
||||
Reference in New Issue
Block a user