Free cookie consent management tool by TermsFeed Policy Generator

Changeset 249


Ignore:
Timestamp:
05/13/08 23:12:31 (16 years ago)
Author:
gkronber
Message:

fixed incorrect sleeping-timeouts (#149)

File:
1 edited

Legend:

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

    r248 r249  
    127127              success = false;
    128128              retries++;
    129               Thread.Sleep(RETRY_TIMEOUT_SEC);
     129              Thread.Sleep(TimeSpan.FromSeconds(RETRY_TIMEOUT_SEC));
    130130            } catch(CommunicationException communicationException) {
    131131              success = false;
    132132              retries++;
    133               Thread.Sleep(RETRY_TIMEOUT_SEC);
     133              Thread.Sleep(TimeSpan.FromSeconds(RETRY_TIMEOUT_SEC));
    134134            }
    135135
     
    163163              retries++;
    164164              success = false;
    165               Thread.Sleep(RETRY_TIMEOUT_SEC);
     165              Thread.Sleep(TimeSpan.FromSeconds(RETRY_TIMEOUT_SEC));
    166166            } catch(CommunicationException communicationException) {
    167167              retries++;
    168168              success = false;
    169               Thread.Sleep(RETRY_TIMEOUT_SEC);
     169              Thread.Sleep(TimeSpan.FromSeconds(RETRY_TIMEOUT_SEC));
    170170            }
    171171          } while(!success && retries < MAX_CONNECTION_RETRIES);
     
    188188                success = false;
    189189                retries++;
    190                 Thread.Sleep(RETRY_TIMEOUT_SEC);
     190                Thread.Sleep(TimeSpan.FromSeconds(RETRY_TIMEOUT_SEC));
    191191              } catch(CommunicationException communicationException) {
    192192                success = false;
    193193                retries++;
    194                 Thread.Sleep(RETRY_TIMEOUT_SEC);
     194                Thread.Sleep(TimeSpan.FromSeconds(RETRY_TIMEOUT_SEC));
    195195              }
    196196            } while(!success && retries < MAX_CONNECTION_RETRIES);
Note: See TracChangeset for help on using the changeset viewer.