Skip to content

Commit

Permalink
Fixed bug in previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Liron Yahdav committed Apr 29, 2011
1 parent d6ffb7b commit 46bcd10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rpm_contrib/instrumentation/resque.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def self.flush_metric_data
if ::RPMContrib::SUPPORTS_FORK
NewRelic::Agent.shutdown unless defined?(::Resque.before_child_exit)
else
::RPM::Contrib::Instrumentation::ResqueInstrumentation.flush_metric_data unless defined?(::Resque.before_child_exit)
::RPMContrib::Instrumentation::ResqueInstrumentation.flush_metric_data unless defined?(::Resque.before_child_exit)
end

end
Expand All @@ -52,7 +52,7 @@ def self.flush_metric_data
if ::RPMContrib::SUPPORTS_FORK
NewRelic::Agent.shutdown
else
::RPM::Contrib::Instrumentation::ResqueInstrumentation.flush_metric_data
::RPMContrib::Instrumentation::ResqueInstrumentation.flush_metric_data
end
end
end
Expand Down

0 comments on commit 46bcd10

Please sign in to comment.