From 5f3892283f35ac5af8fd4d63175501e0e6116544 Mon Sep 17 00:00:00 2001 From: Suwings Date: Wed, 23 Feb 2022 17:17:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20=E5=85=B3=E6=9C=8D?= =?UTF-8?q?=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/entity/commands/general/general _stop.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/entity/commands/general/general _stop.ts b/src/entity/commands/general/general _stop.ts index bc146aa..2b8b0ad 100644 --- a/src/entity/commands/general/general _stop.ts +++ b/src/entity/commands/general/general _stop.ts @@ -39,7 +39,10 @@ export default class GeneralStopCommand extends InstanceCommand { } else { await instance.exec(new SendCommand(stopCommand)); } + + instance.println("INFO", `已执行预设的关闭命令:${stopCommand}\n如果无法关闭实例请前往实例设置更改关闭实例的正确命令,比如 ^C,stop,end 等`); const cacheStartCount = instance.startCount; + // 若 10 分钟后实例还处于停止中状态,则恢复状态 setTimeout(() => { if (instance.status() === Instance.STATUS_STOPPING && instance.startCount === cacheStartCount) {