Skip to content

Commit

Permalink
Merge pull request #46 from CGQAQ/dev
Browse files Browse the repository at this point in the history
try 放在循环内,有异常不会退出循环。捕获漏网之鱼(syste.memory.dll)
  • Loading branch information
2dust authored Aug 28, 2019
2 parents 8986a96 + 3cd80a2 commit 3cdff62
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions v2rayN/v2rayN/Handler/StatisticsHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ public void Close()

public void run()
{
try
while (!exitFlag_)
{
while (!exitFlag_)
try
{
if (enabled_ && channel_.State == ChannelState.Ready)
{
Expand Down Expand Up @@ -123,8 +123,8 @@ public void run()
channel_.ConnectAsync();
}
}
catch { }
}
catch { }
}

public void parseOutput(Google.Protobuf.Collections.RepeatedField<Stat> source, out ulong up, out ulong down)
Expand Down
1 change: 1 addition & 0 deletions v2rayN/v2rayN/v2rayN.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down

0 comments on commit 3cdff62

Please sign in to comment.