Suppress CancellationException
This commit is contained in:
@@ -135,7 +135,8 @@ object TrafficRecorder {
|
|||||||
if (!timeout && timestamp - lastUpdate <= 100) return
|
if (!timeout && timestamp - lastUpdate <= 100) return
|
||||||
try {
|
try {
|
||||||
doUpdate(timestamp)
|
doUpdate(timestamp)
|
||||||
} catch (e: RuntimeException) {
|
} catch (_: CancellationException) {
|
||||||
|
} catch (e: Exception) {
|
||||||
Timber.w(e)
|
Timber.w(e)
|
||||||
SmartSnackbar.make(e).show()
|
SmartSnackbar.make(e).show()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user