Skip to content

Commit 6d7bc6f

Browse files
committed
Fix block for with_lock, that doesn't yield the receiver
Thanks to @npezza93 for catching this ^_^U
1 parent d58c230 commit 6d7bc6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/solid_queue/processes/registrable.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def stop_heartbeat
5353
end
5454

5555
def heartbeat
56-
process.with_lock(&:heartbeat)
56+
process.with_lock { process.heartbeat }
5757
rescue ActiveRecord::RecordNotFound
5858
self.process = nil
5959
wake_up

0 commit comments

Comments
 (0)