mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-07-30 14:13:32 +00:00
SEC-1104: Added check of "running" flag in stop() method to prevent stopping twice.
This commit is contained in:
parent
305ce125fb
commit
1fa46f4ad2
@ -183,6 +183,10 @@ public class ApacheDSContainer implements InitializingBean, DisposableBean, Life
|
|||||||
|
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
public void stop() {
|
public void stop() {
|
||||||
|
if (!isRunning()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
Properties env = new Properties();
|
Properties env = new Properties();
|
||||||
env.setProperty(Context.INITIAL_CONTEXT_FACTORY, ServerContextFactory.class.getName());
|
env.setProperty(Context.INITIAL_CONTEXT_FACTORY, ServerContextFactory.class.getName());
|
||||||
env.setProperty(Context.SECURITY_AUTHENTICATION, "simple");
|
env.setProperty(Context.SECURITY_AUTHENTICATION, "simple");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user