summaryrefslogtreecommitdiff
path: root/sources/simulator/VSSimulationPanel.java
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2008-05-19 00:55:18 +0000
committerPaul Buetow <paul@buetow.org>2008-05-19 00:55:18 +0000
commitc91c5aa93d701eccda88112ab4a078b5057d6c33 (patch)
treea3aac3f3d33bbb6c2afdc3840061e78582a3ecae /sources/simulator/VSSimulationPanel.java
parentf3644572ea68aacf96ce5a1a9b9e5ce2cf617d95 (diff)
Bugfix in the TaskManager.insert method.
Diffstat (limited to 'sources/simulator/VSSimulationPanel.java')
-rw-r--r--sources/simulator/VSSimulationPanel.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/sources/simulator/VSSimulationPanel.java b/sources/simulator/VSSimulationPanel.java
index e9ade8c..7be587b 100644
--- a/sources/simulator/VSSimulationPanel.java
+++ b/sources/simulator/VSSimulationPanel.java
@@ -556,14 +556,16 @@ public class VSSimulationPanel extends JPanel implements Runnable, MouseMotionLi
time = 0;
lastTime = 0;
- taskManager.reset();
-
for (VSProcess p : processes)
p.reset();
+ /* Reset the task manager AFTER the processes, for the programmed tasks */
+ taskManager.reset();
+
synchronized (messageLines) {
messageLines.clear();
}
+
repaint();
logging.clear();
}