Skip to content

Commit b77ec86

Browse files
committed
fix: can't delete GitHub Enterprise servers
need to use synchronization
1 parent 202f4a3 commit b77ec86

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/org/jenkinsci/plugins/github_branch_source/GitHubConfiguration.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ public GitHubConfiguration() {
5959

6060
@Override
6161
public boolean configure(StaplerRequest req, JSONObject json) throws FormException {
62-
endpoints = null;
62+
synchronized (endpoints) {
63+
endpoints = null;
64+
}
6365
req.bindJSON(this, json);
6466
return true;
6567
}

0 commit comments

Comments
 (0)