From bcb92f0763506abdcb9b79292269a476d708c306 Mon Sep 17 00:00:00 2001 From: rxseger Date: Fri, 7 Oct 2016 06:27:34 +0000 Subject: [PATCH] Fix callback reuse when not refreshing --- lib/node-ipmi.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node-ipmi.js b/lib/node-ipmi.js index 93d31c6..de85fa6 100755 --- a/lib/node-ipmi.js +++ b/lib/node-ipmi.js @@ -58,7 +58,7 @@ Connect.prototype.getSensors = function(cb, refreshdata) { if(this.sensors!==null && !refreshdata) { console.log("reuse"); - cb(null, this.sensors); + return cb(null, this.sensors); } Sensors.getSensors(this.cmdOptions, callback);