mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-12 07:04:52 +09:00
Fixed missing callback :S
This commit is contained in:
1 parent
5d51e9e80a
commit
4a2e62386f
1 file changed
+3
@@ -69,6 +69,9 @@ function messageInterface(command, callback) {
|
||||
serverprocess.stdin.write("/c command;\n")
|
||||
*/
|
||||
serverprocess.stdin.write(command+"\n");
|
||||
if(typeof callback == "function"){
|
||||
callback();
|
||||
}
|
||||
} else if(typeof command == "string" && client && client.exec && typeof client.exec == "function") {
|
||||
try {
|
||||
client.exec(command, callback);
|
||||
|
||||
Reference in new issue
Block a user