Fixed Step-Server & Client closing error + Siemens Nc bug fixes + Machine-Info data exchange fix
This commit is contained in:
@@ -32,7 +32,7 @@ namespace Step.Core
|
||||
|
||||
public static void Start()
|
||||
{
|
||||
ThreadsFunctions.TryNcConnection();
|
||||
ThreadsFunctions.TryNcConnection();
|
||||
}
|
||||
|
||||
public static void StartWorkers()
|
||||
@@ -77,6 +77,19 @@ namespace Step.Core
|
||||
RunningThreadStatus.Add("TryNcConnection", "---");
|
||||
MessageServices.Current.Publish(SEND_THREADS_STATUS, null, RunningThreadStatus);
|
||||
}
|
||||
|
||||
public static void Close()
|
||||
{
|
||||
//Abort Nc Read Threads
|
||||
RunningThreadsList.ForEach(thread =>
|
||||
{
|
||||
thread.Abort();
|
||||
});
|
||||
|
||||
//Abort Connect Thread
|
||||
ThreadsFunctions.AbortNcConnection();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user