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

@@ -410,7 +410,7 @@ class RepeaterService : Service(), CoroutineScope, WifiP2pManager.ChannelListene
timeoutMonitor?.close()
timeoutMonitor = null
}
routingManager?.destroy()
routingManager?.stop()
routingManager = null
status = Status.IDLE
ServiceNotification.stopForeground(this)