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