File tree 1 file changed +7
-2
lines changed
packages/firestore/src/local
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,6 @@ import { ReferenceSet } from './reference_set';
72
72
import { ClientId } from './shared_client_state' ;
73
73
import { TargetData } from './target_data' ;
74
74
import { SimpleDb , SimpleDbStore , SimpleDbTransaction } from './simple_db' ;
75
-
76
75
const LOG_TAG = 'IndexedDbPersistence' ;
77
76
78
77
/**
@@ -489,7 +488,13 @@ export class IndexedDbPersistence implements Persistence {
489
488
) . next ( ( ) => inactive ) ;
490
489
} ) ;
491
490
}
492
- ) ;
491
+ ) . catch ( ( ) => {
492
+ // Ignore primary lease violations or any other type of error. The next
493
+ // primary will run `maybeGarbageCollectMultiClientState()` again.
494
+ // We don't use `ignoreIfPrimaryLeaseLoss()` since we don't want to depend
495
+ // on LocalStore.
496
+ return [ ] ;
497
+ } ) ;
493
498
494
499
// Delete potential leftover entries that may continue to mark the
495
500
// inactive clients as zombied in LocalStorage.
You can’t perform that action at this time.
0 commit comments