Changeset 8869
- Timestamp:
- 11/05/12 14:54:10 (12 years ago)
- Location:
- trunk/sources/HeuristicLab.Clients.Hive/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Clients.Hive/3.3/JobResultPoller.cs
r7259 r8869 82 82 83 83 private void RunPolling() { 84 IsPolling = true; 84 85 while (true) { 85 IsPolling = true;86 86 try { 87 87 waitHandle = new AutoResetEvent(false); … … 92 92 waitHandle.WaitOne(Interval); 93 93 } 94 waitHandle.Close(); 94 95 if (stopRequested) { 96 waitHandle.Close(); 97 IsPolling = false; 98 return; 99 } 95 100 } 96 101 catch (Exception e) { 97 102 OnExceptionOccured(e); 98 } finally { 99 IsPolling = false; 103 if (!autoResumeOnException) { 104 waitHandle.Close(); 105 IsPolling = false; 106 return; 107 } 100 108 } 101 if (stopRequested) return;102 if (!autoResumeOnException) return;103 109 } 104 110 } -
trunk/sources/HeuristicLab.Clients.Hive/3.3/RefreshableJob.cs
r8165 r8869 228 228 jobResultPoller = new JobResultPoller(job.Id, Settings.Default.ResultPollingInterval); 229 229 RegisterResultPollingEvents(); 230 jobResultPoller.AutoResumeOnException = true;230 jobResultPoller.AutoResumeOnException = false; 231 231 } 232 232
Note: See TracChangeset
for help on using the changeset viewer.