Fix download/upload timeout + Fix some warnings

This commit is contained in:
Aurélie Delhaie
2022-08-08 18:00:11 +02:00
parent e3d33a1af9
commit 40645a80a1
28 changed files with 71 additions and 52 deletions

View File

@@ -21,7 +21,7 @@ namespace OpenSaveCloudClient.Core
private TaskManager()
{
logManager = LogManager.GetInstance();
logManager = LogManager.Instance;
_tasks = new Dictionary<string, AsyncTaskInformation>();
mut = new Mutex();
timer = new System.Timers.Timer
@@ -32,13 +32,16 @@ namespace OpenSaveCloudClient.Core
timer.Start();
}
public static TaskManager GetInstance()
public static TaskManager Instance
{
if (instance == null)
get
{
instance = new TaskManager();
if (instance == null)
{
instance = new TaskManager();
}
return instance;
}
return instance;
}
public string StartTask(string label, bool undefined, int progressMax)