diff --git a/mobile/src/main/java/be/mygod/vpnhotspot/net/monitor/TrafficRecorder.kt b/mobile/src/main/java/be/mygod/vpnhotspot/net/monitor/TrafficRecorder.kt index 17a26a80..a205d8e5 100644 --- a/mobile/src/main/java/be/mygod/vpnhotspot/net/monitor/TrafficRecorder.kt +++ b/mobile/src/main/java/be/mygod/vpnhotspot/net/monitor/TrafficRecorder.kt @@ -135,7 +135,8 @@ object TrafficRecorder { if (!timeout && timestamp - lastUpdate <= 100) return try { doUpdate(timestamp) - } catch (e: RuntimeException) { + } catch (_: CancellationException) { + } catch (e: Exception) { Timber.w(e) SmartSnackbar.make(e).show() }