Skip to content

Commit

Permalink
Remove manual reconnect on disabling split tunneling
Browse files Browse the repository at this point in the history
  • Loading branch information
olmoh committed Jan 22, 2025
1 parent cf1b79d commit d4b9ef0
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ interface IProps {
}

export default function NotificationArea(props: IProps) {
const { showFullDiskAccessSettings, reconnectTunnel } = useAppContext();
const { showFullDiskAccessSettings } = useAppContext();

const account = useSelector((state: IReduxState) => state.account);
const locale = useSelector((state: IReduxState) => state.userInterface.locale);
Expand Down Expand Up @@ -80,8 +80,7 @@ export default function NotificationArea(props: IProps) {
const disableSplitTunneling = useCallback(async () => {
setIsModalOpen(false);
await setSplitTunnelingState(false);
await reconnectTunnel();
}, [reconnectTunnel, setSplitTunnelingState]);
}, [setSplitTunnelingState]);

const notificationProviders: InAppNotificationProvider[] = [
new ConnectingNotificationProvider({ tunnelState }),
Expand Down

0 comments on commit d4b9ef0

Please sign in to comment.