From a23b519a53caf11ce3d91f127f40a122148e2ce0 Mon Sep 17 00:00:00 2001 From: Mygod Date: Fri, 17 Jul 2020 05:57:25 +0800 Subject: [PATCH] Revert "Suppress not registered error for now" This reverts commit f7ed0c2387c9e15ca38239ff20765d624c419dce. --- .../main/java/be/mygod/vpnhotspot/net/TetheringManager.kt | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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) } /**