private void ErrorWatcher() { UIHelper.LogInfo(string.Format("Error Data를 {0}주기로 체크", _errorCheckInterval)); int count = 0; int checkCount = _errorCheckInterval / 100; while (!_shouldStop) { if (count < checkCount) { // Wait Thread.Sleep(100); count++; continue; } count = 0; // Check cycle complete flag if (_machineInterface.IsThereError() == true) { MachineErrorData errorData = _machineInterface.GetMachineErrorData(); _serverComm.SendMachineErrorData(errorData); } } UIHelper.LogInfo("Error Data 수집 종료"); }