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) {
|
if (!isKernelEnabled) {
|
||||||
requestRoot().onSuccess {
|
requestRoot().onSuccess {
|
||||||
if (!isKernelSupported()) return@onSuccess SnackbarController.showMessage(StringValue.StringResource(R.string.kernel_not_supported))
|
if (!isKernelSupported()) return@onSuccess SnackbarController.showMessage(StringValue.StringResource(R.string.kernel_not_supported))
|
||||||
|
tunnelService.get().setBackendState(BackendState.INACTIVE, emptyList())
|
||||||
appDataRepository.settings.save(
|
appDataRepository.settings.save(
|
||||||
copy(
|
copy(
|
||||||
isKernelEnabled = true,
|
isKernelEnabled = true,
|
||||||
|
|
Loading…
Reference in New Issue