Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/22/11 10:58:01 (13 years ago)
Author:
cneumuel
Message:

#1233

  • small fixes
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave.Tests/SlaveCommListener.cs

    r6033 r6039  
    5656
    5757    public void Close() {
    58       if (pipeFactory.State != CommunicationState.Closed && pipeFactory.State != CommunicationState.Closing) {
     58      if (pipeFactory.State != CommunicationState.Closed &&
     59          pipeFactory.State != CommunicationState.Closing &&
     60          pipeFactory.State != CommunicationState.Faulted) {
    5961        pipeProxy.Unsubscribe();
     62      }
     63      try {
    6064        pipeFactory.Close();
     65      }
     66      catch (Exception) {
     67        pipeFactory.Abort();
    6168      }
    6269    }
Note: See TracChangeset for help on using the changeset viewer.