diff --git a/lib/action_mailer/ar_sendmail.rb b/lib/action_mailer/ar_sendmail.rb index f5c62b1..89606b0 100644 --- a/lib/action_mailer/ar_sendmail.rb +++ b/lib/action_mailer/ar_sendmail.rb @@ -456,7 +456,6 @@ def run install_signal_handlers loop do - now = Time.now begin cleanup emails = find_emails @@ -464,7 +463,7 @@ def run rescue ActiveRecord::Transactions::TransactionError end break if @once - sleep @delay if now + @delay > Time.now + sleep @delay end end