- Timestamp:
- 12/10/08 14:15:00 (16 years ago)
- Location:
- trunk/sources
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Contracts/ApplicationConstants.cs
r937 r940 31 31 public static string RESPONSE_COMMUNICATOR_LOGOUT_CLIENT_NOT_REGISTERED = "Communicator.LogoutClientNotRegistered"; 32 32 public static string RESPONSE_COMMUNICATOR_LOGOUT_SUCCESS = "Logout.Success"; 33 public static string RESPONSE_COMMUNICATOR_NO_JOBS_LEFT = "Communicator.NoJobsLeft"; 33 34 34 35 } -
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.