fix dedupe
This commit is contained in:
+5
-4
@@ -97,13 +97,14 @@ class NativeIntentGatekeeperReplicator
|
|||||||
return inFlight;
|
return inFlight;
|
||||||
}
|
}
|
||||||
|
|
||||||
final future = _syncPendingAllowsInternal();
|
late final Future<void> wrapped;
|
||||||
_pendingAllowSync = future.whenComplete(() {
|
wrapped = _syncPendingAllowsInternal().whenComplete(() {
|
||||||
if (identical(_pendingAllowSync, future)) {
|
if (identical(_pendingAllowSync, wrapped)) {
|
||||||
_pendingAllowSync = null;
|
_pendingAllowSync = null;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
return _pendingAllowSync!;
|
_pendingAllowSync = wrapped;
|
||||||
|
return wrapped;
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|||||||
Reference in New Issue
Block a user