summaryrefslogtreecommitdiff
path: root/src/AbstractCommand.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/AbstractCommand.cc')
-rw-r--r--src/AbstractCommand.cc13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/AbstractCommand.cc b/src/AbstractCommand.cc
index 03fa6476..e8bd53c3 100644
--- a/src/AbstractCommand.cc
+++ b/src/AbstractCommand.cc
@@ -722,14 +722,11 @@ void AbstractCommand::prepareForNextAction(Command* nextCommand)
SharedHandle<CheckIntegrityEntry> entry
(new StreamCheckIntegrityEntry(_requestGroup, nextCommand));
- std::vector<Command*> commands;
- try {
- _requestGroup->processCheckIntegrityEntry(commands, entry, _e);
- } catch(RecoverableException& e) {
- std::for_each(commands.begin(), commands.end(), Deleter());
- throw;
- }
- _e->addCommand(commands);
+ std::vector<Command*>* commands = new std::vector<Command*>();
+ auto_delete_container<std::vector<Command*> > commandsDel(commands);
+ _requestGroup->processCheckIntegrityEntry(*commands, entry, _e);
+ _e->addCommand(*commands);
+ commands->clear();
_e->setNoWait(true);
}