diff --git a/services/filestore/app.coffee b/services/filestore/app.coffee index fc6cce6ede..027ec11119 100644 --- a/services/filestore/app.coffee +++ b/services/filestore/app.coffee @@ -35,7 +35,8 @@ app.use (req, res, next) -> requestDomain.add req requestDomain.add res requestDomain.on "error", (err)-> - res.send 500 + if !res.finished + res.send(500) logger = require('logger-sharelatex') req = body:req.body