diff --git a/html/index.html b/html/index.html index 5f297c6a..701a8d6b 100644 --- a/html/index.html +++ b/html/index.html @@ -1333,6 +1333,7 @@

+ diff --git a/mineos.js b/mineos.js index a339caa8..b81a25cf 100644 --- a/mineos.js +++ b/mineos.js @@ -1470,7 +1470,7 @@ mineos.mc = function(server_name, base_dir) { var timeout = setTimeout(function(){ new_tail.unwatch(); - callback(null, true); //default to true for unsupported server functionality fallback + return callback(null, true); //default to true for unsupported server functionality fallback }, TIMEOUT_LENGTH); new_tail.on('line', function(data) { @@ -1478,7 +1478,7 @@ mineos.mc = function(server_name, base_dir) { if (match) { //previously on, return true clearTimeout(timeout); new_tail.unwatch(); - callback(null, true); + return callback(null, true); } var match = data.match(/INFO]: Turned on world auto-saving/); if (match) { //previously off, return false @@ -1486,7 +1486,7 @@ mineos.mc = function(server_name, base_dir) { new_tail.unwatch(); self.stuff('save-off', function() { //reset initial state - callback(null, false); //return initial state + return callback(null, false); //return initial state }); } })