From 25776c257f1489bdc0f9f2767e4803cd86d054bb Mon Sep 17 00:00:00 2001 From: MDMCK10 <21245760+MDMCK10@users.noreply.github.com> Date: Sat, 11 Feb 2023 20:39:32 +0100 Subject: [PATCH] Change shutdown behavior (again) I hope this works --- src/QEMUVM.ts | 1 - src/QMPClient.ts | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/QEMUVM.ts b/src/QEMUVM.ts index e23a03c..3dffc45 100644 --- a/src/QEMUVM.ts +++ b/src/QEMUVM.ts @@ -220,7 +220,6 @@ export default class QEMUVM extends EventEmitter { Resume() : Promise { return new Promise(async (res, rej) => { if (this.expectedExit) {res(); return;} - await this.qmpClient.reboot(); await this.qmpClient.execute({ "execute": "cont" }); res(); }); diff --git a/src/QMPClient.ts b/src/QMPClient.ts index 8706147..3f35884 100644 --- a/src/QMPClient.ts +++ b/src/QMPClient.ts @@ -67,8 +67,8 @@ export default class QMPClient extends EventEmitter { this.emit("qmpreturn", msg.return); else if(msg.event !== undefined) { switch(msg.event) { - case "POWERDOWN": case "STOP": + case "RESET": { this.emit("qmpshutdown"); break