Revert "Suppress not registered error for now"

This reverts commit f7ed0c2387.
This commit is contained in:
Mygod
2020-07-17 05:57:25 +08:00
parent 7fb00a0042
commit a23b519a53

View File

@@ -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)
}
/**