From 9e55cdaeecac8870fc4decebd3abb39160effe7c Mon Sep 17 00:00:00 2001 From: Ryan Date: Sat, 21 Jan 2012 00:49:31 -0800 Subject: [PATCH] Only call recover() when spool is a Swift_FileSpool --- .../Bundle/SwiftmailerBundle/Command/SendEmailCommand.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Symfony/Bundle/SwiftmailerBundle/Command/SendEmailCommand.php b/src/Symfony/Bundle/SwiftmailerBundle/Command/SendEmailCommand.php index 47b1d08714..f6804143a7 100644 --- a/src/Symfony/Bundle/SwiftmailerBundle/Command/SendEmailCommand.php +++ b/src/Symfony/Bundle/SwiftmailerBundle/Command/SendEmailCommand.php @@ -58,6 +58,8 @@ EOF if ($spool instanceof \Swift_ConfigurableSpool) { $spool->setMessageLimit($input->getOption('message-limit')); $spool->setTimeLimit($input->getOption('time-limit')); + } + if ($spool instanceof \Swift_FileSpool) { if (null !== $input->getOption('recover-timeout')) { $spool->recover($input->getOption('recover-timeout')); } else {