fix: shut down backend if we enter kernel mode

This commit is contained in:
Zane Schepke 2024-12-11 00:18:42 -05:00
parent d84d9df57d
commit c657c62640
1 changed files with 1 additions and 0 deletions

View File

@ -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,