mirror of
https://github.com/2dust/v2rayN.git
synced 2026-10-29 00:25:00 +03:00
Code optimization, function asynchrony
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
while (true)
|
||||
{
|
||||
var updateTime = ((DateTimeOffset)DateTime.Now).ToUnixTimeSeconds();
|
||||
var lstSubs = AppHandler.Instance.SubItems()
|
||||
var lstSubs = (await AppHandler.Instance.SubItems())
|
||||
.Where(t => t.autoUpdateInterval > 0)
|
||||
.Where(t => updateTime - t.updateTime >= t.autoUpdateInterval * 60)
|
||||
.ToList();
|
||||
|
||||
Reference in New Issue
Block a user