fix disposed issues
This commit is contained in:
@@ -278,12 +278,16 @@ Future<bool> isTabTunneled(Ref ref, String? tabId) async {
|
||||
.read(tabDataRepositoryProvider.notifier)
|
||||
.getTabContainerId(tabState.id);
|
||||
|
||||
if (!ref.mounted) return false;
|
||||
|
||||
final containerData = await containerId.mapNotNull(
|
||||
(containerId) => ref
|
||||
.read(containerRepositoryProvider.notifier)
|
||||
.getContainerData(containerId),
|
||||
);
|
||||
|
||||
if (!ref.mounted) return false;
|
||||
|
||||
return containerData?.metadata.useProxy ?? false;
|
||||
case TorRegularTabProxyMode.all:
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user