Skip to content

Commit

Permalink
Merge pull request #139 from Shopify/backend-mutex-fix
Browse files Browse the repository at this point in the history
remove release_run_lock side-effect if already released
  • Loading branch information
bmansoob authored Oct 15, 2024
2 parents 9471138 + 5c968c3 commit 916af20
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 916af20

Please sign in to comment.