Change shutdown behavior (again)
I hope this works
This commit is contained in:
1 parent
07d0be6bd4
commit
25776c257f
2 files changed
+1
-2
No files matched your search
@@ -220,7 +220,6 @@ export default class QEMUVM extends EventEmitter {
|
||||
Resume() : Promise<void> {
|
||||
return new Promise(async (res, rej) => {
|
||||
if (this.expectedExit) {res(); return;}
|
||||
await this.qmpClient.reboot();
|
||||
await this.qmpClient.execute({ "execute": "cont" });
|
||||
res();
|
||||
});
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user