try 放在循环内,有异常不会退出循环。有个漏网之鱼(syste.memory.dll)

pull/46/head
CGQAQ 2019-08-28 09:43:29 +08:00
parent 612ad30660
commit 3cd80a20bb
2 changed files with 4 additions and 3 deletions

View File

@ -86,9 +86,9 @@ namespace v2rayN.Handler
public void run() public void run()
{ {
try while (!exitFlag_)
{ {
while (!exitFlag_) try
{ {
if (enabled_ && channel_.State == ChannelState.Ready) if (enabled_ && channel_.State == ChannelState.Ready)
{ {
@ -123,8 +123,8 @@ namespace v2rayN.Handler
channel_.ConnectAsync(); channel_.ConnectAsync();
} }
} }
catch { }
} }
catch { }
} }
public void parseOutput(Google.Protobuf.Collections.RepeatedField<Stat> source, out ulong up, out ulong down) public void parseOutput(Google.Protobuf.Collections.RepeatedField<Stat> source, out ulong up, out ulong down)

View File

@ -112,6 +112,7 @@
<Reference Include="System.Memory, Version=4.0.1.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL"> <Reference Include="System.Memory, Version=4.0.1.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion> <SpecificVersion>False</SpecificVersion>
<HintPath>LIB\System.Memory.dll</HintPath> <HintPath>LIB\System.Memory.dll</HintPath>
<Private>False</Private>
</Reference> </Reference>
<Reference Include="System.Net" /> <Reference Include="System.Net" />
<Reference Include="System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"> <Reference Include="System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">