}
}
- public void qcmd(Command cmd) {
+ public void qcmd(Command... cmds) {
synchronized(queue) {
- queue.offer(cmd);
+ for(Command cmd : cmds)
+ queue.offer(cmd);
queue.notifyAll();
}
}
notifyAll();
}
};
+ qcmd(cmd);
synchronized(l) {
while(!donep[0]) {
l.wait();
out.append(' ');
out.append(quote(s));
}
+ out.append("\r\n");
w.write(out.toString());
+ w.flush();
}
} catch(IOException e) {
throw(new StopCondition(e, false));
code = Integer.parseInt(ct.toString());
ct.setLength(0);
state = "start";
- continue eat;
} else {
ct.append(c);
}