mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-05 02:44:02 +00:00
fix(maps): settle failed recovery and update registry QA
This commit is contained in:
1 parent
06c73bca98
commit
8024813792
4 files changed
+145
-300
No files matched your search
@@ -124,9 +124,15 @@ export class MapSourceController {
|
||||
recovery.id !== stack.id &&
|
||||
this.isStackAvailable(recovery.id)
|
||||
) {
|
||||
await this._activate(recovery, gen);
|
||||
if (gen !== this._switchGen) return this.getState();
|
||||
this._activeId = recovery.id;
|
||||
try {
|
||||
const activation = await this._activate(recovery, gen);
|
||||
if (gen !== this._switchGen) return this.getState();
|
||||
this._activeId = activation?.effectiveStackId || recovery.id;
|
||||
} catch (recoveryError) {
|
||||
if (gen !== this._switchGen) return this.getState();
|
||||
this._lastError = recoveryError?.message || String(recoveryError);
|
||||
this._onError?.(this._lastError, recovery);
|
||||
}
|
||||
}
|
||||
if (!silent) this._emitChange('error');
|
||||
} finally {
|
||||
|
||||
Reference in new issue
Block a user