Suppress errors

This commit is contained in:
Mygod
2018-07-12 22:06:32 +08:00
parent 30cafe13e5
commit 580b7620c5
2 changed files with 4 additions and 1 deletions

View File

@@ -106,7 +106,7 @@ class LocalOnlyHotspotService : IpNeighbourMonitoringService() {
}
private fun startFailure(e: Exception?) {
Crashlytics.logException(e)
if (e?.message != "Caller already has an active LocalOnlyHotspot request") Crashlytics.logException(e)
updateNotification()
ServiceNotification.stopForeground(this@LocalOnlyHotspotService)
stopSelf()