prevent double callback in getFileStream

This commit is contained in:
Brian Gough 2014-12-19 16:28:42 +00:00
parent c74356daeb
commit 55c4e220fa

View file

@ -59,6 +59,7 @@ module.exports =
@sendFile bucketName, key, fsPath, callback
getFileStream: (bucketName, key, callback = (err, res)->)->
callback = _.once callback
logger.log bucketName:bucketName, key:key, "getting file from s3"
s3Client = knox.createClient
key: settings.filestore.s3.key