This commit is contained in:
Mygod
2019-07-16 10:35:19 +08:00
parent f61f694d5f
commit f79e20fe11
2 changed files with 4 additions and 3 deletions

View File

@@ -337,7 +337,8 @@ class RepeaterService : Service(), CoroutineScope, WifiP2pManager.ChannelListene
DebugHelper.log(TAG, "P2P connection changed: $info\n$group")
when {
!info.groupFormed || !info.isGroupOwner || !group.isGroupOwner -> {
if (routingManager != null) cleanLocked() // P2P shutdown, else other groups changing before start, ignore
if (routingManager != null) cleanLocked()
// P2P shutdown, else other groups changing before start, ignore
}
routingManager != null -> {
binder.group = group