[KEYCLOAK-13579] - Ignore exceptions when shutting down loopback server

This commit is contained in:
Pedro Igor 2020-04-01 15:39:08 -03:00 committed by Stian Thorgersen
parent 601bf8d63e
commit 2e54ebda76

View file

@ -637,7 +637,11 @@ public class KeycloakInstalled {
} }
public void stop() { public void stop() {
server.stop(); try {
server.stop();
} catch (Exception ignore) {
// it is OK to happen if thread is modified while stopping the server, specially when a security manager is enabled
}
} }
public int getLocalPort() { public int getLocalPort() {