Browse Source

Bug fix

pull/5891/head
2dust 4 weeks ago
parent
commit
1e7284f141
  1. 22
      v2rayN/PacLib/PacHandler.cs
  2. 5
      v2rayN/ServiceLib/Services/UpdateService.cs

22
v2rayN/PacLib/PacHandler.cs

@ -77,8 +77,9 @@ public class PacHandler
stream.Flush();
});
}
catch (Exception e)
catch
{
// ignored
}
}
}, TaskCreationOptions.LongRunning);
@ -86,17 +87,16 @@ public class PacHandler
public static void Stop()
{
if (_tcpListener != null)
if (_tcpListener == null) return;
try
{
try
{
_isRunning = false;
_tcpListener.Stop();
_tcpListener = null;
}
catch (Exception e)
{
}
_isRunning = false;
_tcpListener.Stop();
_tcpListener = null;
}
catch
{
// ignored
}
}
}

5
v2rayN/ServiceLib/Services/UpdateService.cs

@ -503,6 +503,11 @@ namespace ServiceLib.Services
}
}
var path = Utils.GetBinPath("srss");
if (!Directory.Exists(path))
{
Directory.CreateDirectory(path);
}
foreach (var item in geoipFiles.Distinct())
{
await UpdateSrsFile("geoip", item, config, updateFunc);

Loading…
Cancel
Save