Skip to content

Commit 9891722

Browse files
author
Aaron Patterson and Terence Lee
committed
we should always have a connection in the ensure
1 parent 5988271 commit 9891722

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/resque/connection_pool.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def with_connection
3030
conn = checkout
3131
yield(conn)
3232
ensure
33-
checkin(conn) if conn
33+
checkin(conn)
3434
end
3535

3636
private

0 commit comments

Comments
 (0)