mirror of
https://github.com/2dust/v2rayN.git
synced 2026-10-19 19:55:00 +03:00
Refactor UpdateService to use instance config and callbacks
This commit is contained in:
@@ -111,11 +111,10 @@ public class TaskManager
|
||||
{
|
||||
Logging.SaveLog("Execute update geo files");
|
||||
|
||||
var updateHandle = new UpdateService();
|
||||
await updateHandle.UpdateGeoFileAll(_config, async (success, msg) =>
|
||||
await new UpdateService(_config, async (success, msg) =>
|
||||
{
|
||||
await _updateFunc?.Invoke(false, msg);
|
||||
});
|
||||
}).UpdateGeoFileAll();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user