forked from mirror/MCSM-Daemon
Fix: 正常命令执行
This commit is contained in:
parent
1de5c4d71f
commit
79a8f76295
@ -32,8 +32,8 @@ export default class GeneralSendCommand extends InstanceCommand {
|
||||
// 关服命令需要发送命令,但关服命令执行前会设置状态为关闭中状态。
|
||||
// 所以这里只能通过进程是否存在来执行命令
|
||||
if (!instance.process) instance.failure(new Error("命令执行失败,因为实例实际进程不存在."));
|
||||
instance.process.write(buf);
|
||||
// instance.process.write(encode(buf, instance.config.oe));
|
||||
// instance.process.write("\r\n");
|
||||
// instance.process.write(buf);
|
||||
instance.process.write(encode(buf, instance.config.oe));
|
||||
instance.process.write("\n");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user