Skip to content

Commit

Permalink
Arc - Decide whether req. context is active based on validity of its …
Browse files Browse the repository at this point in the history
…ContextState
  • Loading branch information
manovotn committed Jan 9, 2024
1 parent 02471b8 commit 62007b0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ public <T> T get(Contextual<T> contextual) {

@Override
public boolean isActive() {
return currentContext.get() != null;
RequestContextState requestContextState = currentContext.get();
return requestContextState == null ? false : requestContextState.isValid();
}

@Override
Expand Down

0 comments on commit 62007b0

Please # to comment.