From 6e56eb63ac759f8deb3449116f952838313ad1a7 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 19 May 2016 20:28:17 +0200 Subject: Return with callback with an error --- server/controllers/api/v1/pods.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/controllers') diff --git a/server/controllers/api/v1/pods.js b/server/controllers/api/v1/pods.js index e216714d6..ecaeba666 100644 --- a/server/controllers/api/v1/pods.js +++ b/server/controllers/api/v1/pods.js @@ -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) -- cgit v1.2.3