- Timestamp:
- 12/10/08 14:15:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Server.Core/ClientCommunicator.cs
r934 r940 70 70 ResponseJob response = new ResponseJob(); 71 71 lock (this) { 72 response.JobId = jobs.Last.Value; 73 jobs.RemoveLast(); 74 response.SerializedJob = PersistenceManager.SaveToGZip(new TestJob()); 72 if (jobs.Last != null) { 73 response.JobId = jobs.Last.Value; 74 jobs.RemoveLast(); 75 response.SerializedJob = PersistenceManager.SaveToGZip(new TestJob()); 76 response.Success = true; 77 response.StatusMessage = ApplicationConstants.RESPONSE_COMMUNICATOR_JOB_PULLED; 78 return response; 79 } 75 80 } 76 77 81 response.Success = true; 78 response.StatusMessage = ApplicationConstants.RESPONSE_COMMUNICATOR_JOB_PULLED; 79 return response; 82 response.StatusMessage = ApplicationConstants.RESPONSE_COMMUNICATOR_NO_JOBS_LEFT; 80 83 } 81 84
Note: See TracChangeset
for help on using the changeset viewer.