diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2022-05-26 05:44:27 +0530 |
---|---|---|
committer | Harsh Shandilya <me@msfjarvis.dev> | 2022-05-26 06:01:02 +0530 |
commit | 1bb8a10633e4b085e4ba24fcdb5fe393e4c2d4a0 (patch) | |
tree | 3d89836db4c6a114d6dcb309feb750cc2ab4e478 /ui/src/main/java/com/wireguard | |
parent | f3230fc8f99244156ee13c30d297cdb8587a8b81 (diff) |
ui: remove unnecessary boolean check
This check was added in 3c31c340d86f when the kernel module loader was
introduced into the app lifecycle, to avoid attempting to start a root shell
twice. When the module loader was removed in a03ad51622d338d1c, this flag
was accidentally left in when it should have been deleted.
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
Diffstat (limited to 'ui/src/main/java/com/wireguard')
-rw-r--r-- | ui/src/main/java/com/wireguard/android/Application.kt | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ui/src/main/java/com/wireguard/android/Application.kt b/ui/src/main/java/com/wireguard/android/Application.kt index d9dcb637..f26ca926 100644 --- a/ui/src/main/java/com/wireguard/android/Application.kt +++ b/ui/src/main/java/com/wireguard/android/Application.kt @@ -64,11 +64,9 @@ class Application : android.app.Application() { private suspend fun determineBackend(): Backend { var backend: Backend? = null - var didStartRootShell = false if (UserKnobs.enableKernelModule.first() && WgQuickBackend.hasKernelSupport()) { try { - if (!didStartRootShell) - rootShell.start() + rootShell.start() val wgQuickBackend = WgQuickBackend(applicationContext, rootShell, toolsInstaller) wgQuickBackend.setMultipleTunnels(UserKnobs.multipleTunnels.first()) backend = wgQuickBackend |