mirror of
https://github.com/MCSManager/MCSManager.git
synced 2024-11-21 03:12:10 +08:00
fix: instance.process.write(encode(buf, instance.config.oe)); -> inputCode
This commit is contained in:
parent
1dcafd9128
commit
76e0bc023c
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user