diff --git a/services/src/main/java/org/keycloak/services/managers/DefaultBruteForceProtector.java b/services/src/main/java/org/keycloak/services/managers/DefaultBruteForceProtector.java index c6057a8b62..bd6d86ceab 100644 --- a/services/src/main/java/org/keycloak/services/managers/DefaultBruteForceProtector.java +++ b/services/src/main/java/org/keycloak/services/managers/DefaultBruteForceProtector.java @@ -295,13 +295,8 @@ public class DefaultBruteForceProtector implements Runnable, BruteForceProtector @Override public void successfulLogin(final RealmModel realm, final UserModel user, final ClientConnection clientConnection) { - try { - SuccessfulLogin event = new SuccessfulLogin(realm.getId(), user.getId(), clientConnection.getRemoteAddr()); - queue.offer(event); - - event.latch.await(5, TimeUnit.SECONDS); - } catch (InterruptedException e) { - } + SuccessfulLogin event = new SuccessfulLogin(realm.getId(), user.getId(), clientConnection.getRemoteAddr()); + queue.offer(event); logger.trace("sent success event"); }