mirror of
https://github.com/2dust/v2rayN.git
synced 2025-04-20 06:02:23 +00:00
预防闪退
This commit is contained in:
parent
a6fcf53b10
commit
ec3eb2215b
1 changed files with 23 additions and 16 deletions
|
@ -34,6 +34,8 @@ namespace v2rayN.Base
|
||||||
}
|
}
|
||||||
|
|
||||||
private void StartListen()
|
private void StartListen()
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
listener = new TcpListener(IPAddress.Any, port);
|
listener = new TcpListener(IPAddress.Any, port);
|
||||||
listener.Start();
|
listener.Start();
|
||||||
|
@ -56,6 +58,11 @@ namespace v2rayN.Base
|
||||||
Thread.Sleep(1);
|
Thread.Sleep(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
catch
|
||||||
|
{
|
||||||
|
Utils.SaveLog("WebserverB start fail.");
|
||||||
|
}
|
||||||
|
}
|
||||||
private void ProcessThread(object obj)
|
private void ProcessThread(object obj)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
|
Loading…
Reference in a new issue