Changeset 249 for trunk/sources/HeuristicLab.DistributedEngine
- Timestamp:
- 05/13/08 23:12:31 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.DistributedEngine/JobManager.cs
r248 r249 127 127 success = false; 128 128 retries++; 129 Thread.Sleep( RETRY_TIMEOUT_SEC);129 Thread.Sleep(TimeSpan.FromSeconds(RETRY_TIMEOUT_SEC)); 130 130 } catch(CommunicationException communicationException) { 131 131 success = false; 132 132 retries++; 133 Thread.Sleep( RETRY_TIMEOUT_SEC);133 Thread.Sleep(TimeSpan.FromSeconds(RETRY_TIMEOUT_SEC)); 134 134 } 135 135 … … 163 163 retries++; 164 164 success = false; 165 Thread.Sleep( RETRY_TIMEOUT_SEC);165 Thread.Sleep(TimeSpan.FromSeconds(RETRY_TIMEOUT_SEC)); 166 166 } catch(CommunicationException communicationException) { 167 167 retries++; 168 168 success = false; 169 Thread.Sleep( RETRY_TIMEOUT_SEC);169 Thread.Sleep(TimeSpan.FromSeconds(RETRY_TIMEOUT_SEC)); 170 170 } 171 171 } while(!success && retries < MAX_CONNECTION_RETRIES); … … 188 188 success = false; 189 189 retries++; 190 Thread.Sleep( RETRY_TIMEOUT_SEC);190 Thread.Sleep(TimeSpan.FromSeconds(RETRY_TIMEOUT_SEC)); 191 191 } catch(CommunicationException communicationException) { 192 192 success = false; 193 193 retries++; 194 Thread.Sleep( RETRY_TIMEOUT_SEC);194 Thread.Sleep(TimeSpan.FromSeconds(RETRY_TIMEOUT_SEC)); 195 195 } 196 196 } while(!success && retries < MAX_CONNECTION_RETRIES);
Note: See TracChangeset
for help on using the changeset viewer.