HHH-8502 synchronize AuditConfiguration#destroy
This commit is contained in:
parent
a20b0bd9ea
commit
c28748f989
|
@ -187,10 +187,12 @@ public class AuditConfiguration {
|
|||
}
|
||||
|
||||
public void destroy() {
|
||||
for ( Map.Entry<Configuration, AuditConfiguration> c : new HashSet<Map.Entry<Configuration, AuditConfiguration>>(
|
||||
CFGS.entrySet() ) ) {
|
||||
if ( c.getValue() == this ) { // this is nasty cleanup fix, whole static CFGS should be reworked
|
||||
CFGS.remove( c.getKey() );
|
||||
synchronized (AuditConfiguration.class) {
|
||||
for ( Map.Entry<Configuration, AuditConfiguration> c : new HashSet<Map.Entry<Configuration, AuditConfiguration>>(
|
||||
CFGS.entrySet() ) ) {
|
||||
if ( c.getValue() == this ) { // this is nasty cleanup fix, whole static CFGS should be reworked
|
||||
CFGS.remove( c.getKey() );
|
||||
}
|
||||
}
|
||||
}
|
||||
classLoaderService = null;
|
||||
|
|
Loading…
Reference in New Issue