Save the context of a suspended list before resuming the execution, so that it can safely be suspended again. Patch 3004652 by fuzzie.

svn-id: r50037
This commit is contained in:
Nicola Mettifogo 2010-06-19 02:50:46 +00:00
parent f4b700c4c4
commit 61c40e2bd4

View File

@ -193,8 +193,10 @@ void CommandExec::runSuspended() {
debugC(3, kDebugExec, "CommandExec::runSuspended()");
_execZone = _suspendedCtxt._zone;
runList(_suspendedCtxt._first, _suspendedCtxt._last);
CommandList::iterator first = _suspendedCtxt._first;
CommandList::iterator last = _suspendedCtxt._last;
cleanSuspendedList();
runList(first, last);
}
}