Fix ctx.shutdown() not waiting for pending UI renders, fixes #756
This commit is contained in:
@@ -2075,6 +2075,10 @@ export class InteractiveMode {
|
||||
});
|
||||
}
|
||||
|
||||
// Wait for any pending renders to complete
|
||||
// requestRender() uses process.nextTick(), so we wait one tick
|
||||
await new Promise((resolve) => process.nextTick(resolve));
|
||||
|
||||
this.stop();
|
||||
process.exit(0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user