mirror of
https://github.com/2dust/v2rayN.git
synced 2026-10-20 04:05:00 +03:00
Code optimization, function asynchrony
This commit is contained in:
@@ -126,7 +126,7 @@ namespace ServiceLib.Services
|
||||
_updateFunc = updateFunc;
|
||||
|
||||
_updateFunc?.Invoke(false, ResUI.MsgUpdateSubscriptionStart);
|
||||
var subItem = AppHandler.Instance.SubItems().OrderBy(t => t.sort).ToList();
|
||||
var subItem = await AppHandler.Instance.SubItems();
|
||||
|
||||
if (subItem == null || subItem.Count <= 0)
|
||||
{
|
||||
@@ -469,7 +469,7 @@ namespace ServiceLib.Services
|
||||
var geoSiteFiles = new List<string>();
|
||||
|
||||
//Collect used files list
|
||||
var routingItems = AppHandler.Instance.RoutingItems();
|
||||
var routingItems = await AppHandler.Instance.RoutingItems();
|
||||
foreach (var routing in routingItems)
|
||||
{
|
||||
var rules = JsonUtils.Deserialize<List<RulesItem>>(routing.ruleSet);
|
||||
|
||||
Reference in New Issue
Block a user