Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/08/11 14:33:00 (12 years ago)
Author:
ascheibe
Message:

#1233 prevent appdomain leases from timing out if communication with server is interrupted

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave/3.3/SlaveTask.cs

    r6945 r6971  
    200200    private void MonitorExecutor() {
    201201      while (executorMonitoringRun) {
    202         //this blocks through the appdomain border, that's why the lease gets renewed
    203         ExecutorMessage message = executor.ExecutorCommandQueue.GetMessage();
     202        //this call goes through the appdomain border. We have to
     203        //poll so that the the lease gets renewed
     204        ExecutorMessage message;
     205        do {
     206          message = executor.ExecutorCommandQueue.GetMessage();
     207        } while (message == null);
    204208
    205209        switch (message.MessageType) {
Note: See TracChangeset for help on using the changeset viewer.