InterpreterDock: bug fix that was causing instructions to vanish
[fleet.git] / 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) {