Only call recover() when spool is a Swift_FileSpool

This commit is contained in:
Ryan 2012-01-21 00:49:31 -08:00
parent d2a0c74e22
commit 9e55cdaeec

View File

@ -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 {