Ticket #9178: 0004-clean-suspended-list-before-running-commands-which-m.txt

File 0004-clean-suspended-list-before-running-commands-which-m.txt, 910 bytes (added by fuzzie, 14 years ago)
Line 
1From 451a415b09e539d2c9e2ecbdccbf05142f7bd0b6 Mon Sep 17 00:00:00 2001
2From: Alyssa Milburn <fuzzie@fuzzie.org>
3Date: Thu, 20 May 2010 13:09:10 +0200
4Subject: [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
10diff --git a/engines/parallaction/exec.cpp b/engines/parallaction/exec.cpp
11index 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--
271.6.3.3
28