Suppress CancellationException
This commit is contained in:
@@ -34,10 +34,7 @@ import be.mygod.vpnhotspot.util.formatAddresses
|
|||||||
import be.mygod.vpnhotspot.util.showAllowingStateLoss
|
import be.mygod.vpnhotspot.util.showAllowingStateLoss
|
||||||
import be.mygod.vpnhotspot.widget.SmartSnackbar
|
import be.mygod.vpnhotspot.widget.SmartSnackbar
|
||||||
import kotlinx.android.parcel.Parcelize
|
import kotlinx.android.parcel.Parcelize
|
||||||
import kotlinx.coroutines.Dispatchers
|
import kotlinx.coroutines.*
|
||||||
import kotlinx.coroutines.GlobalScope
|
|
||||||
import kotlinx.coroutines.launch
|
|
||||||
import kotlinx.coroutines.withContext
|
|
||||||
import timber.log.Timber
|
import timber.log.Timber
|
||||||
import java.net.NetworkInterface
|
import java.net.NetworkInterface
|
||||||
import java.net.SocketException
|
import java.net.SocketException
|
||||||
@@ -215,7 +212,7 @@ class RepeaterManager(private val parent: TetheringFragment) : Manager(), Servic
|
|||||||
bssid = config.bssid
|
bssid = config.bssid
|
||||||
this to false
|
this to false
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
Timber.w(e)
|
if (e !is CancellationException) Timber.w(e)
|
||||||
passphrase = group.passphrase
|
passphrase = group.passphrase
|
||||||
bssid = group.owner?.deviceAddress?.let(MacAddressCompat.Companion::fromString)
|
bssid = group.owner?.deviceAddress?.let(MacAddressCompat.Companion::fromString)
|
||||||
this to true
|
this to true
|
||||||
|
|||||||
Reference in New Issue
Block a user