Fix crash on LOHService failure
This commit is contained in:
@@ -91,6 +91,8 @@ class LocalOnlyHotspotService : IpNeighbourMonitoringService() {
|
|||||||
})
|
})
|
||||||
Toast.makeText(this@LocalOnlyHotspotService, message, Toast.LENGTH_SHORT).show()
|
Toast.makeText(this@LocalOnlyHotspotService, message, Toast.LENGTH_SHORT).show()
|
||||||
Crashlytics.logException(StartFailure(message))
|
Crashlytics.logException(StartFailure(message))
|
||||||
|
updateNotification()
|
||||||
|
ServiceNotification.stopForeground(this@LocalOnlyHotspotService)
|
||||||
}
|
}
|
||||||
}, app.handler)
|
}, app.handler)
|
||||||
} catch (e: IllegalStateException) {
|
} catch (e: IllegalStateException) {
|
||||||
|
|||||||
Reference in New Issue
Block a user