Merge pull request #46 from CGQAQ/dev

try 放在循环内,有异常不会退出循环。捕获漏网之鱼(syste.memory.dll)
This commit is contained in:
2dust 2019-08-28 13:14:06 +08:00 committed by GitHub
commit 3cdff624ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View file

@ -85,10 +85,10 @@ namespace v2rayN.Handler
}
public void run()
{
try
{
while (!exitFlag_)
{
try
{
if (enabled_ && channel_.State == ChannelState.Ready)
{
@ -123,9 +123,9 @@ namespace v2rayN.Handler
channel_.ConnectAsync();
}
}
}
catch { }
}
}
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">
<SpecificVersion>False</SpecificVersion>
<HintPath>LIB\System.Memory.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="System.Net" />
<Reference Include="System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">