Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/29/09 15:14:32 (16 years ago)
Author:
kgrading
Message:

fixed persistence problems (#493)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Client.Communication/3.2/WcfService.cs

    r1939 r1959  
    157157        if (ConnState == NetworkEnum.WcfConnState.Connected) {
    158158          Response res = proxy.Login(clientInfo);
    159           ConnState = NetworkEnum.WcfConnState.Loggedin;
    160           Logging.Instance.Info(this.ToString(), res.StatusMessage);
     159          if (!res.Success) {
     160            Logging.Instance.Error(this.ToString(), "Login Failed! " + res.StatusMessage);
     161            HandleNetworkError(null);
     162          } else {
     163            ConnState = NetworkEnum.WcfConnState.Loggedin;
     164            Logging.Instance.Info(this.ToString(), res.StatusMessage);
     165          }
    161166        }
    162167      }
     
    297302    }
    298303
     304    public Response IsJobStillNeeded(Guid jobId) {
     305      try {
     306        return proxy.IsJobStillNeeded(jobId);
     307      }
     308      catch (Exception e) {
     309        HandleNetworkError(e);
     310        return null;
     311      }
     312     
     313    }
     314
    299315    public ResponseResultReceived ProcessSnapshotSync(Guid clientId, Guid jobId, byte[] result, double percentage, Exception exception) {
    300316      try {
Note: See TracChangeset for help on using the changeset viewer.