预防闪退

pull/567/head
YFdyh000 2020-03-20 08:44:45 +08:00
parent a6fcf53b10
commit ec3eb2215b
1 changed files with 23 additions and 16 deletions

View File

@ -34,6 +34,8 @@ namespace v2rayN.Base
}
private void StartListen()
{
try
{
listener = new TcpListener(IPAddress.Any, port);
listener.Start();
@ -56,6 +58,11 @@ namespace v2rayN.Base
Thread.Sleep(1);
}
}
catch
{
Utils.SaveLog("WebserverB start fail.");
}
}
private void ProcessThread(object obj)
{
try