if (instruction.tokenIn)
throw new RuntimeException("invalid instruction: " + instruction +
" (attempts to use trigger on an inbox)");
+
if (instruction.dataIn && itemsFromFabric.size()==0) return false;
// consume inbound data+token
itemReadyForShip = true;
// and make note of the fact that we need to send an ack (if requested)
- if (instruction.tokenIn)
+ if (instruction.tokenOut)
ackDestinationUponAccept = (InterpreterBenkoBox)instruction.dest;
- } else if (instruction.tokenIn) {
+ } else if (instruction.tokenOut) {
// if dataOut is not set, we can send the data immediately
getInterpreter().sendToken(this, (InterpreterBenkoBox)instruction.dest);