提交 d5dd1e9b 编写于 作者: K kohsuke

queue initialization has to happen after the timer is set.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@11348 71c3de6d-444a-0410-be80-ed276b4c234a
上级 1512ac07
......@@ -144,7 +144,7 @@ import java.util.regex.Pattern;
* @author Kohsuke Kawaguchi
*/
public final class Hudson extends View implements ItemGroup<TopLevelItem>, Node, StaplerProxy {
private transient final Queue queue = new Queue();
private transient final Queue queue;
/**
* {@link Computer}s in this Hudson system. Read-only.
......@@ -325,6 +325,7 @@ public final class Hudson extends View implements ItemGroup<TopLevelItem>, Node,
throw new IllegalStateException("second instance");
theInstance = this;
Trigger.timer = new Timer("Hudson cron thread");
queue = new Queue();
try {
dependencyGraph = DependencyGraph.EMPTY;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册