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

@@ -19,8 +19,8 @@ android {
minSdkVersion 21 minSdkVersion 21
targetSdkVersion 29 targetSdkVersion 29
resConfigs "ru", "zh-rCN" resConfigs "ru", "zh-rCN"
versionCode 206 versionCode 207
versionName '2.4.6' versionName '2.5.0'
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
javaCompileOptions { javaCompileOptions {
annotationProcessorOptions { annotationProcessorOptions {

View File

@@ -337,7 +337,8 @@ class RepeaterService : Service(), CoroutineScope, WifiP2pManager.ChannelListene
DebugHelper.log(TAG, "P2P connection changed: $info\n$group") DebugHelper.log(TAG, "P2P connection changed: $info\n$group")
when { when {
!info.groupFormed || !info.isGroupOwner || !group.isGroupOwner -> { !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 -> { routingManager != null -> {
binder.group = group binder.group = group