Skip to content

Commit

Permalink
[java] close the running Server in unittests if a retry is needed
Browse files Browse the repository at this point in the history
  • Loading branch information
joerg1985 committed Nov 20, 2024
1 parent 192b2d5 commit 60e3171
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,16 @@ public void start() {
() -> {
server.start();
if (secure != null) {
secure.start();
try {
secure.start();
} catch (Exception e) {
try {
server.stop();
} catch (Exception ex) {
e.addSuppressed(ex);
throw e;
}
}
}
});
}
Expand Down

0 comments on commit 60e3171

Please sign in to comment.