Skip to content

Commit

Permalink
Fix block for with_lock, that doesn't yield the receiver
Browse files Browse the repository at this point in the history
Thanks to @npezza93 for catching this ^_^U
  • Loading branch information
rosa committed Sep 10, 2024
1 parent 29f297c commit fdb7bc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/solid_queue/processes/registrable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def stop_heartbeat
end

def heartbeat
process.with_lock(&:heartbeat)
process.with_lock { process.heartbeat }
rescue ActiveRecord::RecordNotFound
self.process = nil
wake_up
Expand Down

0 comments on commit fdb7bc0

Please sign in to comment.