fix: shut down backend if we enter kernel mode
This commit is contained in:
parent
d84d9df57d
commit
c657c62640
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue