Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean Michel-Lemieux2003-09-17 17:50:49 +0000
committerJean Michel-Lemieux2003-09-17 17:50:49 +0000
commitc54103d1df24d65dc5c08a1a15c6e6e6eecc32ba (patch)
tree1cb83b1437552b404bb4be65f1622070006bdc49
parenta0358da3d7a6361daf75c4dbfe38c79a469ea36e (diff)
downloadeclipse.platform.team-c54103d1df24d65dc5c08a1a15c6e6e6eecc32ba.tar.gz
eclipse.platform.team-c54103d1df24d65dc5c08a1a15c6e6e6eecc32ba.tar.xz
eclipse.platform.team-c54103d1df24d65dc5c08a1a15c6e6e6eecc32ba.zip
Moved schedule out of synchronized block.
-rw-r--r--bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/jobs/JobStatusHandler.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/jobs/JobStatusHandler.java b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/jobs/JobStatusHandler.java
index 9971f2356..6803c05fc 100644
--- a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/jobs/JobStatusHandler.java
+++ b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/jobs/JobStatusHandler.java
@@ -36,19 +36,20 @@ public class JobStatusHandler extends JobChangeAdapter {
private List listeners = new ArrayList();
/**
- * Associate the job with the given jobType and schdule the job for
+ * Associate the job with the given jobType and schedule the job for
* immediate start.
* @param job
* @param jobType
*/
public static void schedule(Job job, QualifiedName jobType) {
+ JobStatusHandler handler;
synchronized (handlers) {
- JobStatusHandler handler = getHandler(jobType);
+ handler = getHandler(jobType);
if (handler == null) {
handler = createHandler(jobType);
- }
- handler.schedule(job);
+ }
}
+ handler.schedule(job);
}
/**

Back to the top