mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-13 07:04:53 +09:00
fixed slaves not registering on windows
This commit is contained in:
1 parent
18a40ca806
commit
ee133761f7
1 file changed
+5
-6
@@ -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<pluginDirectories.length; i++) {
|
||||
for(let i=0; i<pluginDirectories.length; i++) {
|
||||
let I = i
|
||||
let log = function(t) {
|
||||
console.log("Clusterio | "+ pluginDirectories[I] + " | " + t);
|
||||
@@ -427,8 +427,7 @@ function instanceManagement() {
|
||||
}
|
||||
});
|
||||
});
|
||||
},1000);
|
||||
});
|
||||
},1000)});
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user