diff --git a/mobile/src/main/java/be/mygod/vpnhotspot/net/monitor/TetherTimeoutMonitor.kt b/mobile/src/main/java/be/mygod/vpnhotspot/net/monitor/TetherTimeoutMonitor.kt index 7c39e695..75629031 100644 --- a/mobile/src/main/java/be/mygod/vpnhotspot/net/monitor/TetherTimeoutMonitor.kt +++ b/mobile/src/main/java/be/mygod/vpnhotspot/net/monitor/TetherTimeoutMonitor.kt @@ -48,7 +48,7 @@ class TetherTimeoutMonitor(private val timeout: Long = 0, resources.getInteger(resources.findIdentifier("config_wifiFrameworkSoftApShutDownTimeoutMilliseconds", "integer", "com.android.wifi.resources", info.packageName)) } - } catch (e: Resources.NotFoundException) { + } catch (e: RuntimeException) { Timber.w(e) MIN_SOFT_AP_TIMEOUT_DELAY_MS } else MIN_SOFT_AP_TIMEOUT_DELAY_MS