Skip to content

Commit

Permalink
bug[429]: unicorn worker was trying to delete the Instana constant tw…
Browse files Browse the repository at this point in the history
…ice. Hence adding check defined?

Signed-off-by: Arjun Rajappa <[email protected]>
  • Loading branch information
arjun-rajappa committed Nov 13, 2024
1 parent 465fb0e commit 0ab1a3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/instana.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2016
if ENV.fetch('INSTANA_DISABLE', false)
if ENV.fetch('INSTANA_DISABLE', false) && defined?(::Instana)
Object.send(:remove_const, :Instana)
end

Expand Down

0 comments on commit 0ab1a3f

Please sign in to comment.