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);