mirror of https://github.com/2dust/v2rayN
try 放在循环内,有异常不会退出循环。有个漏网之鱼(syste.memory.dll)
parent
612ad30660
commit
3cd80a20bb
|
@ -85,10 +85,10 @@ 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,9 +123,9 @@ 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)
|
||||||
{
|
{
|
||||||
|
|
|
@ -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">
|
||||||
|
|
Loading…
Reference in New Issue