From a3026f8141a2ed83df53c6207b7d94e7174f0670 Mon Sep 17 00:00:00 2001 From: Mygod Date: Fri, 1 Feb 2019 16:59:25 +0800 Subject: [PATCH] Prevent crash I guess --- mobile/src/main/java/be/mygod/vpnhotspot/net/DhcpWorkaround.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mobile/src/main/java/be/mygod/vpnhotspot/net/DhcpWorkaround.kt b/mobile/src/main/java/be/mygod/vpnhotspot/net/DhcpWorkaround.kt index a56a401b..2d2875e3 100644 --- a/mobile/src/main/java/be/mygod/vpnhotspot/net/DhcpWorkaround.kt +++ b/mobile/src/main/java/be/mygod/vpnhotspot/net/DhcpWorkaround.kt @@ -32,6 +32,9 @@ object DhcpWorkaround : SharedPreferences.OnSharedPreferenceChangeListener { e.result.err.joinToString("\n") == "RTNETLINK answers: File exists") return Timber.w(e) SmartSnackbar.make(e).show() + } catch (e: Exception) { + Timber.w(e) + SmartSnackbar.make(e).show() } }