Only call recover() when spool is a Swift_FileSpool
This commit is contained in:
parent
d2a0c74e22
commit
9e55cdaeec
@ -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 {
|
||||
|
Reference in New Issue
Block a user