Minor synchronize update

This commit is contained in:
mposolda committed 2016-12-12 13:09:19 +01:00
1 parent 79c1650c15
commit 8c99a13387
1 file changed
+4 -2
@@ -73,8 +73,10 @@ public class JWKPublicKeyLocator implements PublicKeyLocator {
@Override
public void reset(KeycloakDeployment deployment) {
sendRequest(deployment);
lastRequestTime = Time.currentTime();
synchronized (this) {
sendRequest(deployment);
lastRequestTime = Time.currentTime();
}
}