Fix download/upload timeout + Fix some warnings
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user