From 3df5509df0ff0722e4a6a3eb59dcda7256213b0c Mon Sep 17 00:00:00 2001 From: baldo Date: Wed, 29 Jun 2016 11:28:39 +0200 Subject: [PATCH] Fix: Use correct callback to prevent monitoring sending job from hanging. --- server/services/monitoringService.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/services/monitoringService.js b/server/services/monitoringService.js index 514939e..7b537de 100644 --- a/server/services/monitoringService.js +++ b/server/services/monitoringService.js @@ -223,16 +223,16 @@ angular.module('ffffng') Logger .tag('monitoring', 'mail-sending') .error('Error sending "' + name + '" mail for node: ' + mac, err); - return callback(err); + return mailCallback(err); } if (!node) { Logger .tag('monitoring', 'mail-sending') - .warn( + .debug( 'Node not found. Skipping sending of "' + name + '" mail: ' + mac ); - return callback(null); + return mailCallback(null); } if (node.monitoring && node.monitoringConfirmed) {