InterpreterShip: fix bug that caused ships with no input docks to not be serviced
[fleet.git] / src / edu / berkeley / fleet / interpreter / InterpreterShip.java
index 033b33b..811c02b 100644 (file)
@@ -40,7 +40,7 @@ abstract class InterpreterShip extends FleetTwoShip {
             else allflushing = false;
             if (!d.flushing && !d.dataReadyForShip) someempty = true;
         }
-        if (allflushing) {
+        if (allflushing && someflushing) {
             for(InterpreterDock d : docks.values())
                 if (d.isInputDock())
                     d.flushing = false;