Changed Client manager on Server

This commit is contained in:
Nicola Carminati
2019-05-17 09:33:53 +02:00
parent 1b377d0e36
commit 43b3d87ad6
12 changed files with 86 additions and 65 deletions
+11 -1
View File
@@ -31,6 +31,8 @@ namespace Step.Core
};
private volatile static List<Thread> RunningThreadsList = new List<Thread>();
public static Thread StartClient;
internal volatile static Dictionary<string, string> RunningThreadStatus = new Dictionary<string, string>();
public static void Start()
@@ -89,10 +91,18 @@ namespace Step.Core
RunningThreadsList.ForEach(thread =>
{
thread.Abort();
});
});
if(ThreadsHandler.StartClient != null)
ThreadsHandler.StartClient.Abort();
//Abort Connect Thread
ThreadsFunctions.AbortNcConnection();
}
public static void StartClientFromUI()
{
ThreadsFunctions.StartCMSClient();
}
}
}