Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/14/08 16:46:09 (17 years ago)
Author:
gkronber
Message:

moved sleep in the results-fetching-loop to the top. It's better to sleep a little before the first try. (ticket #149)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.DistributedEngine/JobManager.cs

    r257 r258  
    121121      int restartCounter = 0;
    122122      do {
     123        Thread.Sleep(TimeSpan.FromSeconds(CHECK_RESULTS_TIMEOUT));
    123124        byte[] zippedResult = null;
    124125        lock(connectionLock) {
     
    209210          throw new ApplicationException("Maximum number of job restarts reached.");
    210211        }
    211 
    212         Thread.Sleep(TimeSpan.FromSeconds(CHECK_RESULTS_TIMEOUT));
    213212      } while(true);
    214213    }
Note: See TracChangeset for help on using the changeset viewer.