diff options
| author | Paul Buetow <paul@buetow.org> | 2008-05-19 00:55:18 +0000 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2008-05-19 00:55:18 +0000 |
| commit | c91c5aa93d701eccda88112ab4a078b5057d6c33 (patch) | |
| tree | a3aac3f3d33bbb6c2afdc3840061e78582a3ecae /sources/simulator | |
| parent | f3644572ea68aacf96ce5a1a9b9e5ce2cf617d95 (diff) | |
Bugfix in the TaskManager.insert method.
Diffstat (limited to 'sources/simulator')
| -rw-r--r-- | sources/simulator/VSSimulationPanel.java | 6 |
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(); } |
