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; 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