small fixes

This commit is contained in:
2026-02-27 00:34:34 -08:00
parent edcd5cddb6
commit edca554db1
5 changed files with 113 additions and 20 deletions

View File

@@ -41,8 +41,14 @@ export function createInitializeOverlayRuntimeHandler(deps: {
}) {
return (): void => {
if (deps.isOverlayRuntimeInitialized()) return;
deps.initializeOverlayRuntimeCore(deps.buildOptions());
const options = deps.buildOptions();
deps.setOverlayRuntimeInitialized(true);
try {
deps.initializeOverlayRuntimeCore(options);
} catch (error) {
deps.setOverlayRuntimeInitialized(false);
throw error;
}
deps.startBackgroundWarmups();
};
}