Skip to content

Commit

Permalink
fix: locking on FeatureFlags instead of VaadinContext (#13962) (#14741)…
Browse files Browse the repository at this point in the history
… (#14862)

Only lock on FeatureFlags when checking for wrapper and initializing

Fixes #13962

Co-authored-by: marcin <marcin@vaadin.com>
  • Loading branch information
vaadin-bot and MarcinVaadin committed Oct 17, 2022
1 parent c836765 commit bdd6efb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public static FeatureFlags get(final VaadinContext context) {
assert context != null;

FeatureFlagsWrapper attribute;
synchronized (context) {
synchronized (FeatureFlags.class) {
attribute = context.getAttribute(FeatureFlagsWrapper.class);

if (attribute == null) {
Expand Down

0 comments on commit bdd6efb

Please sign in to comment.