fix potential hang
This commit is contained in:
@@ -219,7 +219,7 @@ export default class QEMUVM extends EventEmitter {
|
|||||||
|
|
||||||
Resume() : Promise<void> {
|
Resume() : Promise<void> {
|
||||||
return new Promise(async (res, rej) => {
|
return new Promise(async (res, rej) => {
|
||||||
if (this.expectedExit) return;
|
if (this.expectedExit) {res(); return;}
|
||||||
await this.qmpClient.reboot();
|
await this.qmpClient.reboot();
|
||||||
await this.qmpClient.execute({ "execute": "cont" });
|
await this.qmpClient.execute({ "execute": "cont" });
|
||||||
res();
|
res();
|
||||||
|
|||||||
Reference in New Issue
Block a user