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