mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-21 08:03:13 +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("/c command;\n")
|
||||||
*/
|
*/
|
||||||
serverprocess.stdin.write(command+"\n");
|
serverprocess.stdin.write(command+"\n");
|
||||||
|
if(typeof callback == "function"){
|
||||||
|
callback();
|
||||||
|
}
|
||||||
} else if(typeof command == "string" && client && client.exec && typeof client.exec == "function") {
|
} else if(typeof command == "string" && client && client.exec && typeof client.exec == "function") {
|
||||||
try {
|
try {
|
||||||
client.exec(command, callback);
|
client.exec(command, callback);
|
||||||
|
|||||||
Reference in new issue
Block a user