fix: 当具有已存在的 Xray 核心程序时, 即使更新失败也不会终止程序.
This commit is contained in:
@@ -279,8 +279,19 @@ public class XrayCoreManager(
|
|||||||
|
|
||||||
if (requiredUpdate)
|
if (requiredUpdate)
|
||||||
{
|
{
|
||||||
await FetchXrayCoreProgram();
|
try
|
||||||
logger.LogInformation("Xray-Core 更新完成.");
|
{
|
||||||
|
await FetchXrayCoreProgram();
|
||||||
|
logger.LogInformation("Xray-Core 更新完成.");
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
logger.LogError(e, "更新 Xray-Core 时发生错误.");
|
||||||
|
if (currentVersion == null)
|
||||||
|
{
|
||||||
|
throw;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user