From c657c62640cf973ad074afdd00428ef582cca0b2 Mon Sep 17 00:00:00 2001 From: Zane Schepke Date: Wed, 11 Dec 2024 00:18:42 -0500 Subject: [PATCH] fix: shut down backend if we enter kernel mode --- .../java/com/zaneschepke/wireguardautotunnel/ui/AppViewModel.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/com/zaneschepke/wireguardautotunnel/ui/AppViewModel.kt b/app/src/main/java/com/zaneschepke/wireguardautotunnel/ui/AppViewModel.kt index b08775a..6a6759a 100644 --- a/app/src/main/java/com/zaneschepke/wireguardautotunnel/ui/AppViewModel.kt +++ b/app/src/main/java/com/zaneschepke/wireguardautotunnel/ui/AppViewModel.kt @@ -237,6 +237,7 @@ constructor( if (!isKernelEnabled) { requestRoot().onSuccess { if (!isKernelSupported()) return@onSuccess SnackbarController.showMessage(StringValue.StringResource(R.string.kernel_not_supported)) + tunnelService.get().setBackendState(BackendState.INACTIVE, emptyList()) appDataRepository.settings.save( copy( isKernelEnabled = true,