diff --git a/mobile/src/main/java/be/mygod/vpnhotspot/net/TetheringManager.kt b/mobile/src/main/java/be/mygod/vpnhotspot/net/TetheringManager.kt index f284f8c9..29e9c4f4 100644 --- a/mobile/src/main/java/be/mygod/vpnhotspot/net/TetheringManager.kt +++ b/mobile/src/main/java/be/mygod/vpnhotspot/net/TetheringManager.kt @@ -577,12 +577,7 @@ object TetheringManager { @RequiresApi(30) fun unregisterTetheringEventCallback(callback: TetheringEventCallback) { val proxy = synchronized(callbackMap) { callbackMap.remove(callback) } ?: return - try { - unregisterTetheringEventCallback(instance, proxy) - } catch (e: InvocationTargetException) { - if (e.targetException !is IllegalArgumentException) throw e - Timber.e(e) // TODO: b/160765229 - } + unregisterTetheringEventCallback(instance, proxy) } /**