Skip to content

Commit

Permalink
[JENKINS-49038] Jenkins does not start due to a deadlock
Browse files Browse the repository at this point in the history
the idea is to get the ClaimConfig retrieval out of guice logic.
  • Loading branch information
Greybird committed Feb 14, 2018
1 parent 76d2e4a commit 16e2254
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -39,7 +39,11 @@ public static void preventRefresh(StaplerResponse response) {

@Initializer(after = InitMilestone.PLUGINS_STARTED)
@SuppressWarnings("WeakerAccess")
public static synchronized void initAutoRefreshFilter(ClaimConfig config) throws ServletException {
public static void initAutoRefreshFilter() throws ServletException {
initAutoRefreshFilter(ClaimConfig.get());
}

private static synchronized void initAutoRefreshFilter(ClaimConfig config) throws ServletException {
boolean newInstalled = config.isBlockAutoRefreshWhileClaiming();
boolean installed = installedFilter != null;
if (newInstalled != installed) {
Expand Down

0 comments on commit 16e2254

Please sign in to comment.