Fixed Step-Server & Client closing error + Siemens Nc bug fixes + Machine-Info data exchange fix

This commit is contained in:
CMS3762\carminatini
2018-01-29 17:10:30 +01:00
parent 3e8874090e
commit ecaff5fb7f
16 changed files with 253 additions and 136 deletions
+14 -1
View File
@@ -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();
}
}
}