Skip to content

Commit

Permalink
fix jruby config bug
Browse files Browse the repository at this point in the history
  • Loading branch information
tannalynn committed Sep 11, 2024
1 parent 01b8140 commit a63dfbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/new_relic/agent/configuration/manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ def reset_cache
# modified. The hash really only needs to be modified for the benefit
# of the security agent, so if JRuby is in play and the security agent
# is not, don't attempt to modify the hash at all and return early.
return @cache if NewRelic::LanguageSupport.jruby? && !Agent.config[:'security.agent.enabled']
return new_cache if NewRelic::LanguageSupport.jruby? && !Agent.config[:'security.agent.enabled']

@lock.synchronize do
preserved = @cache.dup.select { |_k, v| DEPENDENCY_DETECTION_VALUES.include?(v) }
Expand Down

0 comments on commit a63dfbd

Please sign in to comment.