Changeset 1959 for trunk/sources/HeuristicLab.Hive.Client.Communication
- Timestamp:
- 05/29/09 15:14:32 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Client.Communication/3.2/WcfService.cs
r1939 r1959 157 157 if (ConnState == NetworkEnum.WcfConnState.Connected) { 158 158 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 } 161 166 } 162 167 } … … 297 302 } 298 303 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 299 315 public ResponseResultReceived ProcessSnapshotSync(Guid clientId, Guid jobId, byte[] result, double percentage, Exception exception) { 300 316 try {
Note: See TracChangeset
for help on using the changeset viewer.