if (peer!=null)
for(int i=0; i<inflight; i++) peer.sendToken(lf);
- lf = lf.makeNext(count);
+ lf = lf.makeNext(count, true);
for(int i=0; i<pattern.length; i++) {
if (pattern[i]==null) {
if (peer!=null) {
public LoopFactory makeNext(int new_count) { return makeNext(new_count, null); }
public LoopFactory makeNext(int new_count, String newFriendlyName) { return makeNext(new_count, new_count==0, newFriendlyName); }
+ public LoopFactory makeNext(int new_count, boolean newTorpedoable) { return makeNext(new_count, newTorpedoable, null); }
public LoopFactory makeNext(int new_count, boolean newTorpedoable, String newFriendlyName) {
if (next != null) throw new RuntimeException("loop already has a successor");
return new LoopFactory(ctx, dock, new_count, newTorpedoable, newFriendlyName, this);