aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenrik Lynggaard Hansen2012-07-01 06:41:12 (EDT)
committerHenrik Lynggaard Hansen2012-07-01 06:41:12 (EDT)
commitc277681553ec3b07a379e1c69e8aa4ab1278f338 (patch)
tree974da42cb7a37ebd582bfbbdf45b9fdd4324a845
parentff36d0a9fed35303352ac7716fb2418a6fe6fc1d (diff)
downloadorg.eclipse.hudson.core-c277681553ec3b07a379e1c69e8aa4ab1278f338.zip
org.eclipse.hudson.core-c277681553ec3b07a379e1c69e8aa4ab1278f338.tar.gz
org.eclipse.hudson.core-c277681553ec3b07a379e1c69e8aa4ab1278f338.tar.bz2
Fix inconsistent sychronisation in SimpleScheduledRetentionStrategy.refs/changes/64/6564/1
Fingbugs reported inconsistent synchronisation of nextStart,nextStop, lastStart,lastStop. These have now been fixed. Change-Id: I89b5f31a09fb20560b59e5641e083fa0be26a917 Signed-off-by: Henrik Lynggaard Hansen <henrik@hlyh.dk>
-rw-r--r--hudson-core/src/main/java/hudson/slaves/SimpleScheduledRetentionStrategy.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/hudson-core/src/main/java/hudson/slaves/SimpleScheduledRetentionStrategy.java b/hudson-core/src/main/java/hudson/slaves/SimpleScheduledRetentionStrategy.java
index c1787b1..3e63e56 100644
--- a/hudson-core/src/main/java/hudson/slaves/SimpleScheduledRetentionStrategy.java
+++ b/hudson-core/src/main/java/hudson/slaves/SimpleScheduledRetentionStrategy.java
@@ -151,7 +151,7 @@ public class SimpleScheduledRetentionStrategy extends RetentionStrategy<SlaveCom
}
@Override
- public boolean isManualLaunchAllowed(final SlaveComputer c) {
+ public synchronized boolean isManualLaunchAllowed(final SlaveComputer c) {
return isOnlineScheduled();
}