diff options
Diffstat (limited to 'src/AbstractCommand.cc')
| -rw-r--r-- | src/AbstractCommand.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/AbstractCommand.cc b/src/AbstractCommand.cc index 52fd872a..e86103e5 100644 --- a/src/AbstractCommand.cc +++ b/src/AbstractCommand.cc @@ -530,8 +530,12 @@ void AbstractCommand::prepareForNextAction(Command* nextCommand) (new StreamCheckIntegrityEntry(_requestGroup, nextCommand)); std::deque<Command*> commands; - _requestGroup->processCheckIntegrityEntry(commands, entry, e); - + try { + _requestGroup->processCheckIntegrityEntry(commands, entry, e); + } catch(RecoverableException& e) { + std::for_each(commands.begin(), commands.end(), Deleter()); + throw; + } e->addCommand(commands); e->setNoWait(true); } |
