summaryrefslogtreecommitdiffstats
path: root/gearman/controllerWorker/ControllerWorker/Shutdown.java
diff options
context:
space:
mode:
Diffstat (limited to 'gearman/controllerWorker/ControllerWorker/Shutdown.java')
-rw-r--r--gearman/controllerWorker/ControllerWorker/Shutdown.java35
1 files changed, 16 insertions, 19 deletions
diff --git a/gearman/controllerWorker/ControllerWorker/Shutdown.java b/gearman/controllerWorker/ControllerWorker/Shutdown.java
index ba0e722..32a97b2 100644
--- a/gearman/controllerWorker/ControllerWorker/Shutdown.java
+++ b/gearman/controllerWorker/ControllerWorker/Shutdown.java
@@ -405,27 +405,24 @@ public class Shutdown extends Thread {
}
if (blacklistFound) {
- System.out.println(ipAddress
- + " is working");
- status.put(clientID, 11); // is working
- psJobs.remove(clientID);
- } else if (whitelistFound) {
+ if (whitelistFound) {
+ /*
+ * System.out.println(ipAddress +
+ * " is not working"); // is not working
+ * status.put(clientID, 4);
+ * psJobs.remove(clientID);
+ */
+ } else {
+ System.out.println(ipAddress
+ + " is working");
+ status.put(clientID, 11); // is working
+ psJobs.remove(clientID);
+ }
+ } else {
System.out.println(ipAddress
+ " is not working");
- status.put(clientID, 4); // is not working
- psJobs.remove(clientID);
- } else {
- System.out
- .println(ipAddress
- + " Cannot check if user is working.");
- errors
- .put(clientID,
- "The check if a user is working has been failed.");
- /*
- * cannot check if user is working, go in
- * errorState
- */
- status.put(clientID, 12);
+ // is not working
+ status.put(clientID, 4);
psJobs.remove(clientID);
}
} else {