From 76e0bc023c55e3194814360b6569e8f452d5d92c Mon Sep 17 00:00:00 2001 From: YuMao Date: Wed, 20 Nov 2024 19:40:24 +0800 Subject: [PATCH] fix: instance.process.write(encode(buf, instance.config.oe)); -> inputCode --- daemon/src/entity/commands/general/general_command.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/src/entity/commands/general/general_command.ts b/daemon/src/entity/commands/general/general_command.ts index 48a71d72..2e59ef36 100755 --- a/daemon/src/entity/commands/general/general_command.ts +++ b/daemon/src/entity/commands/general/general_command.ts @@ -28,7 +28,7 @@ export default class GeneralSendCommand extends InstanceCommand { // The server shutdown command needs to send a command, but before the server shutdown command is executed, the status will be set to the shutdown state. // So here the command can only be executed by whether the process exists or not if (instance?.process) { - instance.process.write(encode(buf, instance.config.oe)); + instance.process.write(encode(buf, instance.config.ie)); if (instance.config.crlf === 2) return instance.process.write("\r\n"); return instance.process.write("\n"); } else {