提交 f9d951e9 编写于 作者: K kohsuke

fixed NPE under some abnormal shut down situation

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15942 71c3de6d-444a-0410-be80-ed276b4c234a
上级 6404417a
......@@ -1915,7 +1915,8 @@ public final class Hudson extends Node implements ItemGroup<TopLevelItem>, Stapl
c.kill();
pending.add(c.disconnect());
}
udpBroadcastThread.shutdown();
if(udpBroadcastThread!=null)
udpBroadcastThread.shutdown();
ExternalJob.reloadThread.interrupt();
Trigger.timer.cancel();
// TODO: how to wait for the completion of the last job?
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册