Suppress InterfaceNotFoundException

This commit is contained in:
Mygod
2021-05-06 18:12:56 -04:00
parent a93dadcee6
commit fdc2aa7a39
2 changed files with 5 additions and 2 deletions

View File

@@ -96,8 +96,11 @@ abstract class RoutingManager(private val caller: Any, val downstream: String, p
}
true
} catch (e: Exception) {
when (e) {
is Routing.InterfaceNotFoundException -> Timber.i(e)
!is CancellationException -> Timber.w(e)
}
SmartSnackbar.make(e).show()
if (e !is CancellationException) Timber.w(e)
routing = null
false
}