mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
Merge branch '2.0.x'
This commit is contained in:
commit
546bd89f2e
@ -227,14 +227,14 @@ public class ReactiveWebServerApplicationContext
|
||||
|
||||
public static void start(ServerManager manager,
|
||||
Supplier<HttpHandler> handlerSupplier) {
|
||||
if (manager != null) {
|
||||
if (manager != null && manager.server != null) {
|
||||
manager.handler = handlerSupplier.get();
|
||||
manager.server.start();
|
||||
}
|
||||
}
|
||||
|
||||
public static void stop(ServerManager manager) {
|
||||
if (manager != null) {
|
||||
if (manager != null && manager.server != null) {
|
||||
try {
|
||||
manager.server.stop();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user