You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spring-boot/src/main/java/org/springframework/boot/context/embedded/jetty/JettyEmbeddedServletContainer.java
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2012-2017 the original author or authors.
2
+
* Copyright 2012-2018 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -155,9 +155,11 @@ public void start() throws EmbeddedServletContainerException {
155
155
.info("Jetty started on port(s) " + getActualPortsDescription());
156
156
}
157
157
catch (EmbeddedServletContainerExceptionex) {
158
+
stopSilently();
158
159
throwex;
159
160
}
160
161
catch (Exceptionex) {
162
+
stopSilently();
161
163
thrownewEmbeddedServletContainerException(
162
164
"Unable to start embedded Jetty servlet container", ex);
Copy file name to clipboardExpand all lines: spring-boot/src/test/java/org/springframework/boot/context/embedded/jetty/JettyEmbeddedServletContainerFactoryTests.java
0 commit comments