diff --git a/client.js b/client.js index 6570e837..c8efcd25 100644 --- a/client.js +++ b/client.js @@ -66,9 +66,9 @@ function messageInterface(command, callback) { client.exec(command, callback); } catch (err) { console.log(err); - if(typeof callback == "function"){ - callback(err); - } + } + if(typeof callback == "function"){ + callback(); } } } @@ -305,7 +305,7 @@ function instanceManagement() { // load plugins and execute onLoad event let pluginDirectories = fileOps.getDirectoriesSync("./sharedPlugins/"); let plugins = []; - for(i=0; i