Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/18/09 11:12:29 (15 years ago)
Author:
kgrading
Message:

implementation done (#493)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Client.Core/Core.cs

    r1199 r1219  
    4343using HeuristicLab.Hive.Client.Communication.ServerService;
    4444using HeuristicLab.Hive.JobBase;
     45using HeuristicLab.Hive.Client.Core.JobStorrage;
    4546
    4647
     
    153154      byte[] sJob = engines[jId].GetFinishedJob();
    154155
    155       wcfService.SendJobResultAsync(ConfigManager.Instance.GetClientInfo().ClientId,
    156         jId,
    157         sJob,
    158         1,
    159         null,
    160         true);
     156      if (WcfService.Instance.ConnState == NetworkEnum.WcfConnState.Connected) {
     157        wcfService.SendJobResultAsync(ConfigManager.Instance.GetClientInfo().ClientId,
     158          jId,
     159          sJob,
     160          1,
     161          null,
     162          true);
     163      } else {
     164        JobStorrageManager.PersistObjectToDisc(wcfService.ServerIP, wcfService.ServerPort, jId, sJob);
     165        AppDomain.Unload(appDomains[jId]);
     166        appDomains.Remove(jId);
     167        engines.Remove(jId);
     168        jobs.Remove(jId);
     169      }
    161170    }
    162171
Note: See TracChangeset for help on using the changeset viewer.