1 | From 451a415b09e539d2c9e2ecbdccbf05142f7bd0b6 Mon Sep 17 00:00:00 2001
|
---|
2 | From: Alyssa Milburn <fuzzie@fuzzie.org>
|
---|
3 | Date: Thu, 20 May 2010 13:09:10 +0200
|
---|
4 | Subject: [PATCH] clean suspended list before running commands which might call suspend again
|
---|
5 |
|
---|
6 | ---
|
---|
7 | engines/parallaction/exec.cpp | 4 +++-
|
---|
8 | 1 files changed, 3 insertions(+), 1 deletions(-)
|
---|
9 |
|
---|
10 | diff --git a/engines/parallaction/exec.cpp b/engines/parallaction/exec.cpp
|
---|
11 | index 2457928..434c4f6 100644
|
---|
12 | --- a/engines/parallaction/exec.cpp
|
---|
13 | +++ b/engines/parallaction/exec.cpp
|
---|
14 | @@ -193,8 +193,10 @@ void CommandExec::runSuspended() {
|
---|
15 | debugC(3, kDebugExec, "CommandExec::runSuspended()");
|
---|
16 |
|
---|
17 | _execZone = _suspendedCtxt._zone;
|
---|
18 | - runList(_suspendedCtxt._first, _suspendedCtxt._last);
|
---|
19 | + CommandList::iterator first = _suspendedCtxt._first;
|
---|
20 | + CommandList::iterator last = _suspendedCtxt._last;
|
---|
21 | cleanSuspendedList();
|
---|
22 | + runList(first, last);
|
---|
23 | }
|
---|
24 | }
|
---|
25 |
|
---|
26 | --
|
---|
27 | 1.6.3.3
|
---|
28 |
|
---|