Fixed issue #39
This commit is contained in:
parent
b965b2d61d
commit
e1d9332e9a
@ -141,7 +141,11 @@ function DaemonInterface(options){
|
|||||||
async.each(instances, function(instance, eachCallback){
|
async.each(instances, function(instance, eachCallback){
|
||||||
|
|
||||||
var itemFinished = function(error, result){
|
var itemFinished = function(error, result){
|
||||||
var returnObj = {error: error, response: result.result, instance: instance};
|
if (result == null) {
|
||||||
|
var returnObj = {error: error, response: null, instance: instance};
|
||||||
|
} else {
|
||||||
|
var returnObj = {error: error, response: result.result, instance: instance};
|
||||||
|
}
|
||||||
if (streamResults) callback(returnObj);
|
if (streamResults) callback(returnObj);
|
||||||
else results.push(returnObj);
|
else results.push(returnObj);
|
||||||
eachCallback();
|
eachCallback();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user