Changed Client manager on Server
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user