Fix more crashes

This commit is contained in:
Mygod
2020-06-26 05:00:17 +08:00
parent debce58375
commit 8f8ede2c8c
3 changed files with 12 additions and 10 deletions

View File

@@ -249,7 +249,7 @@ class RepeaterService : Service(), CoroutineScope, WifiP2pManager.ChannelListene
private fun onPersistentGroupsChanged() = launch {
val ownerAddress = lastMac?.let(MacAddressCompat.Companion::fromString) ?: try {
P2pSupplicantConfiguration().apply { init() }.bssid
} catch (e: RuntimeException) {
} catch (e: Exception) {
Timber.d(e)
null
} ?: return@launch