File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
src/main/java/org/jenkinsci/plugins/scriptsecurity/scripts Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -254,7 +254,7 @@ String hashClasspathEntry(URL entry) throws IOException {
254
254
255
255
static final Hasher DEFAULT_HASHER = Hasher .SHA512 ;
256
256
257
- private Thread convertDeprecatedApprovedClasspathEntriesThread = null ;
257
+ private transient Thread convertDeprecatedApprovedClasspathEntriesThread = null ;
258
258
259
259
/** All scripts which are already approved, via {@link Hasher#hash(String, String)}. */
260
260
private final TreeSet <String > approvedScriptHashes = new TreeSet <>();
@@ -1073,6 +1073,9 @@ public String getSpinnerIconClassName() {
1073
1073
}
1074
1074
}
1075
1075
LOG .info ("Conversion done." );
1076
+ synchronized (ScriptApproval .this ) {
1077
+ convertDeprecatedApprovedClasspathEntriesThread = null ;
1078
+ }
1076
1079
}, "Approved Classpaths rehasher" );
1077
1080
convertDeprecatedApprovedClasspathEntriesThread .setDaemon (true );
1078
1081
convertDeprecatedApprovedClasspathEntriesThread .start ();
You can’t perform that action at this time.
0 commit comments