Shutdown hook triggers doClose within startupShutdownMonitor
Issue: SPR-13556
This commit is contained in:
@@ -891,7 +891,9 @@ public abstract class AbstractApplicationContext extends DefaultResourceLoader
|
||||
this.shutdownHook = new Thread() {
|
||||
@Override
|
||||
public void run() {
|
||||
doClose();
|
||||
synchronized (startupShutdownMonitor) {
|
||||
doClose();
|
||||
}
|
||||
}
|
||||
};
|
||||
Runtime.getRuntime().addShutdownHook(this.shutdownHook);
|
||||
|
||||
Reference in New Issue
Block a user