Return with callback with an error

This commit is contained in:
Chocobozzz 2016-05-19 20:28:17 +02:00
parent 13c14a9028
commit 6e56eb63ac

View File

@ -117,7 +117,7 @@ function removePods (req, res, next) {
videos.removeRemoteVideos(videosList, function (err) {
if (err) {
logger.error('Cannot remove remote videos.', { error: err })
callback(err)
return callback(err)
}
return callback(null)