Skip to content

Commit

Permalink
remove release_run_lock side-effect if already released
Browse files Browse the repository at this point in the history
  • Loading branch information
bmansoob committed Sep 18, 2024
1 parent 9373c5a commit 5c968c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/app_profiler/backend/base_backend.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def acquire_run_lock
end

def release_run_lock
self.class.run_lock.unlock
self.class.run_lock.unlock if self.class.run_lock.locked?
rescue ThreadError
AppProfiler.logger.warn("[AppProfiler] run lock not released as it was never acquired")
end
Expand Down

0 comments on commit 5c968c3

Please sign in to comment.