summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--ui/src/main/java/com/wireguard/android/fragment/TunnelListFragment.kt5
1 files changed, 1 insertions, 4 deletions
diff --git a/ui/src/main/java/com/wireguard/android/fragment/TunnelListFragment.kt b/ui/src/main/java/com/wireguard/android/fragment/TunnelListFragment.kt
index 78c98161..cb3636fe 100644
--- a/ui/src/main/java/com/wireguard/android/fragment/TunnelListFragment.kt
+++ b/ui/src/main/java/com/wireguard/android/fragment/TunnelListFragment.kt
@@ -62,10 +62,7 @@ class TunnelListFragment : BaseFragment() {
// Config text is valid, now create the tunnel…
newInstance(configText).show(parentFragmentManager, null)
} catch (e: Exception) {
- when(e) {
- is BadConfigException, is IOException -> onTunnelImportFinished(emptyList(), listOf<Throwable>(e))
- else -> throw e
- }
+ onTunnelImportFinished(emptyList(), listOf<Throwable>(e))
}
}