From 24d105a53c429a6178be66c25b2e2391c968d4f4 Mon Sep 17 00:00:00 2001 From: Rurirei <72071920+rurirei@users.noreply.github.com> Date: Thu, 8 Oct 2020 15:49:30 +0800 Subject: [PATCH] catch logs to checkout this error --- .../src/main/kotlin/com/v2ray/ang/service/V2RayVpnService.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/V2rayNG/app/src/main/kotlin/com/v2ray/ang/service/V2RayVpnService.kt b/V2rayNG/app/src/main/kotlin/com/v2ray/ang/service/V2RayVpnService.kt index f4cd1752..67b8a56f 100644 --- a/V2rayNG/app/src/main/kotlin/com/v2ray/ang/service/V2RayVpnService.kt +++ b/V2rayNG/app/src/main/kotlin/com/v2ray/ang/service/V2RayVpnService.kt @@ -155,8 +155,8 @@ class V2RayVpnService : VpnService(), ServiceControl { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) { try { connectivity.requestNetwork(defaultNetworkRequest, defaultNetworkCallback) - } catch (ignored: Exception) { - // ignored + } catch (e: Exception) { + e.printStackTrace() } }