From 3cd80a20bb712d10a245b964ef6214f92b0b4df9 Mon Sep 17 00:00:00 2001 From: CGQAQ Date: Wed, 28 Aug 2019 09:43:29 +0800 Subject: [PATCH] =?UTF-8?q?try=20=E6=94=BE=E5=9C=A8=E5=BE=AA=E7=8E=AF?= =?UTF-8?q?=E5=86=85=EF=BC=8C=E6=9C=89=E5=BC=82=E5=B8=B8=E4=B8=8D=E4=BC=9A?= =?UTF-8?q?=E9=80=80=E5=87=BA=E5=BE=AA=E7=8E=AF=E3=80=82=E6=9C=89=E4=B8=AA?= =?UTF-8?q?=E6=BC=8F=E7=BD=91=E4=B9=8B=E9=B1=BC=EF=BC=88syste.memory.dll?= =?UTF-8?q?=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- v2rayN/v2rayN/Handler/StatisticsHandler.cs | 6 +++--- v2rayN/v2rayN/v2rayN.csproj | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/v2rayN/v2rayN/Handler/StatisticsHandler.cs b/v2rayN/v2rayN/Handler/StatisticsHandler.cs index f0dd778b..cc2e1803 100644 --- a/v2rayN/v2rayN/Handler/StatisticsHandler.cs +++ b/v2rayN/v2rayN/Handler/StatisticsHandler.cs @@ -86,9 +86,9 @@ namespace v2rayN.Handler public void run() { - try + while (!exitFlag_) { - while (!exitFlag_) + try { if (enabled_ && channel_.State == ChannelState.Ready) { @@ -123,8 +123,8 @@ namespace v2rayN.Handler channel_.ConnectAsync(); } } + catch { } } - catch { } } public void parseOutput(Google.Protobuf.Collections.RepeatedField source, out ulong up, out ulong down) diff --git a/v2rayN/v2rayN/v2rayN.csproj b/v2rayN/v2rayN/v2rayN.csproj index 41959eef..38b95b24 100644 --- a/v2rayN/v2rayN/v2rayN.csproj +++ b/v2rayN/v2rayN/v2rayN.csproj @@ -112,6 +112,7 @@ False LIB\System.Memory.dll + False