Consistent SmartLifecycle implementations

Issue: SPR-14233
This commit is contained in:
Juergen Hoeller
2016-05-02 13:01:44 +02:00
parent e45d33f9de
commit f83cbff543
11 changed files with 145 additions and 143 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2012 the original author or authors.
* Copyright 2002-2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -308,7 +308,7 @@ public class GenericMessageEndpointManager implements SmartLifecycle, Initializi
@Override
public void stop(Runnable callback) {
synchronized (this.lifecycleMonitor) {
this.stop();
stop();
callback.run();
}
}