Free cookie consent management tool by TermsFeed Policy Generator

Changeset 9347


Ignore:
Timestamp:
04/09/13 16:39:36 (11 years ago)
Author:
ascheibe
Message:

#1890 fixed 2 slave bugs:

  • catch the exception that is thrown if the slave communication service has already been started
  • fixed closing of the wait handle in the heartbeat manager
Location:
trunk/sources/HeuristicLab.Clients.Hive.Slave/3.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Clients.Hive.Slave/3.3/Core.cs

    r8964 r9347  
    7575        //start the client communication service (pipe between slave and slave gui)
    7676        slaveComm = new ServiceHost(typeof(SlaveCommunicationService));
    77         slaveComm.Open();
     77
     78        try {
     79          slaveComm.Open();
     80        }
     81        catch (AddressAlreadyInUseException ex) {
     82          if (ServiceEventLog != null) {
     83            EventLogManager.LogException(ex);
     84          }
     85        }
    7886
    7987        // delete all left over task directories
  • trunk/sources/HeuristicLab.Clients.Hive.Slave/3.3/Manager/HeartbeatManager.cs

    r7259 r9347  
    7070      waitHandle.Set();
    7171      heartBeatThread.Join();
     72      waitHandle.Close();
    7273    }
    7374
     
    129130        waitHandle.WaitOne(this.interval);
    130131      }
    131       waitHandle.Close();
    132132      SlaveClientCom.Instance.LogMessage("Heartbeat thread stopped");
    133133    }
Note: See TracChangeset for help on using the changeset viewer.