Fix provisioner early termination
This commit is contained in:
parent
b53848a806
commit
06aa2f6ce4
2 changed files with 3 additions and 2 deletions
|
@ -356,6 +356,7 @@ function finishInstall({
|
|||
|
||||
// Cleanup
|
||||
const { baton } = state.installer;
|
||||
cancelByBaton.get(baton)?.();
|
||||
cancelByBaton.delete(baton);
|
||||
|
||||
const accountManager = window.getAccountManager();
|
||||
|
|
|
@ -220,7 +220,7 @@ export class Provisioner {
|
|||
//
|
||||
|
||||
#start(): void {
|
||||
log.info('Provisioniner: starting');
|
||||
log.info('Provisioner: starting');
|
||||
|
||||
if (this.#abortController) {
|
||||
strictAssert(this.#isRunning, 'Must be running to have controller');
|
||||
|
@ -237,7 +237,7 @@ export class Provisioner {
|
|||
if (!this.#isRunning) {
|
||||
return;
|
||||
}
|
||||
log.info(`Provisioniner: stopping, reason=${reason}`);
|
||||
log.info(`Provisioner: stopping, reason=${reason}`);
|
||||
|
||||
this.#abortController?.abort();
|
||||
this.#abortController = undefined;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue