Fix wifi lock not released when monitoring

This commit is contained in:
Mygod
2019-11-06 08:35:41 +08:00
parent ef48fe5ec4
commit 4689c9a975
4 changed files with 12 additions and 15 deletions

View File

@@ -158,7 +158,7 @@ class LocalOnlyHotspotService : IpNeighbourMonitoringService(), CoroutineScope {
receiverRegistered = false
}
launch {
routingManager?.destroy()
routingManager?.stop()
routingManager = null
if (exit) {
cancel()