parent
84bde2a836
commit
062b73f4a4
|
@ -65,7 +65,7 @@ public class ReactiveWebServerApplicationContext extends GenericReactiveWebAppli
|
||||||
try {
|
try {
|
||||||
super.refresh();
|
super.refresh();
|
||||||
}
|
}
|
||||||
catch (RuntimeException refreshEx) {
|
catch (RuntimeException ex) {
|
||||||
WebServer webServer = getWebServer();
|
WebServer webServer = getWebServer();
|
||||||
if (webServer != null) {
|
if (webServer != null) {
|
||||||
try {
|
try {
|
||||||
|
@ -73,10 +73,10 @@ public class ReactiveWebServerApplicationContext extends GenericReactiveWebAppli
|
||||||
webServer.destroy();
|
webServer.destroy();
|
||||||
}
|
}
|
||||||
catch (RuntimeException stopOrDestroyEx) {
|
catch (RuntimeException stopOrDestroyEx) {
|
||||||
refreshEx.addSuppressed(stopOrDestroyEx);
|
ex.addSuppressed(stopOrDestroyEx);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
throw refreshEx;
|
throw ex;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -145,7 +145,7 @@ public class ServletWebServerApplicationContext extends GenericWebApplicationCon
|
||||||
try {
|
try {
|
||||||
super.refresh();
|
super.refresh();
|
||||||
}
|
}
|
||||||
catch (RuntimeException refreshEx) {
|
catch (RuntimeException ex) {
|
||||||
try {
|
try {
|
||||||
WebServer webServer = this.webServer;
|
WebServer webServer = this.webServer;
|
||||||
if (webServer != null) {
|
if (webServer != null) {
|
||||||
|
@ -154,9 +154,9 @@ public class ServletWebServerApplicationContext extends GenericWebApplicationCon
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (RuntimeException stopOrDestroyEx) {
|
catch (RuntimeException stopOrDestroyEx) {
|
||||||
refreshEx.addSuppressed(stopOrDestroyEx);
|
ex.addSuppressed(stopOrDestroyEx);
|
||||||
}
|
}
|
||||||
throw refreshEx;
|
throw ex;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue