fix potential hang

This commit is contained in:
Elijah R
2023-02-11 13:57:57 -05:00
committed by GitHub
parent ab6fb07138
commit 07d0be6bd4

View File

@@ -219,7 +219,7 @@ export default class QEMUVM extends EventEmitter {
Resume() : Promise<void> {
return new Promise(async (res, rej) => {
if (this.expectedExit) return;
if (this.expectedExit) {res(); return;}
await this.qmpClient.reboot();
await this.qmpClient.execute({ "execute": "cont" });
res();