InterpreterDock: bug fix that was causing instructions to vanish
authorAdam Megacz <adam@megacz.com>
Sat, 22 Aug 2009 21:33:39 +0000 (14:33 -0700)
committerAdam Megacz <adam@megacz.com>
Sat, 22 Aug 2009 21:33:39 +0000 (14:33 -0700)
src/edu/berkeley/fleet/interpreter/InterpreterDock.java

index 4619209..3cacdf1 100644 (file)
@@ -177,12 +177,8 @@ class InterpreterDock extends FleetTwoDock {
 
             } else if (instructions.peek() instanceof Instruction.Abort) {
                 requeueStageInCirculatingState = false;
-                // HACK
-                while (instructionsBackedUpIntoSwitchFabric.size()!=0) {
-                    Instruction i = instructionsBackedUpIntoSwitchFabric.remove();
-                    addInstruction(i);
-                    instructionsBackedUpIntoSwitchFabric.clear();
-                }
+                while (instructionsBackedUpIntoSwitchFabric.size()!=0)
+                    addInstruction(instructionsBackedUpIntoSwitchFabric.remove());
                 break;
 
             } else if (instructions.peek() instanceof Instruction.Flush) {