On Windows, once Monarch has launched, if the user presses CTRL+C in the CLI, the preview window does not reliably close.
The cli task_runner is calling previewApi.terminatePreview() which shuts down the preview_api engine and the preview window. The error seems to be a timing issue. Some options:
Wait a little bit of time after we call terminatePreview or,
Wait for the _runPreviewAppTask process to reach a final state (with a timeout so the termination is not left hanging)
On Windows, once Monarch has launched, if the user presses CTRL+C in the CLI, the preview window does not reliably close.
The cli task_runner is calling
previewApi.terminatePreview()
which shuts down the preview_api engine and the preview window. The error seems to be a timing issue. Some options:terminatePreview
or,_runPreviewAppTask
process to reach a final state (with a timeout so the termination is not left hanging)