fix dedupe

This commit is contained in:
Fabian Freund
2026-05-02 08:58:46 +02:00
parent 9ff9b83373
commit ecaf5a7f77
@@ -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