fix potential hang
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user