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,