File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
firebase-firestore/src/main/java/com/google/firebase/firestore/core Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -696,8 +696,9 @@ private void trackLimboChange(LimboDocumentChange change) {
696
696
private void pumpEnqueuedLimboResolutions () {
697
697
while (!enqueuedLimboResolutions .isEmpty ()
698
698
&& activeLimboTargetsByKey .size () < maxConcurrentLimboResolutions ) {
699
- DocumentKey key = enqueuedLimboResolutions .iterator ().next ();
700
- enqueuedLimboResolutions .remove (key );
699
+ Iterator <DocumentKey > it = enqueuedLimboResolutions .iterator ();
700
+ DocumentKey key = it .next ();
701
+ it .remove ();
701
702
int limboTargetId = targetIdGenerator .nextId ();
702
703
activeLimboResolutionsByTarget .put (limboTargetId , new LimboResolution (key ));
703
704
activeLimboTargetsByKey .put (key , limboTargetId );
You can’t perform that action at this time.
0 commit comments