Java: Began work on hub listeners.
[doldaconnect.git] / lib / java / dolda / dolcon / protocol / Connection.java
index 43cf5a3..b596639 100644 (file)
@@ -183,9 +183,10 @@ public class Connection {
        }
     }
 
-    public void qcmd(Command cmd) {
+    public void qcmd(Command... cmds) {
        synchronized(queue) {
-           queue.offer(cmd);
+           for(Command cmd : cmds)
+               queue.offer(cmd);
            queue.notifyAll();
        }
     }
@@ -381,7 +382,6 @@ public class Connection {
                                code = Integer.parseInt(ct.toString());
                                ct.setLength(0);
                                state = "start";
-                               continue eat;
                            } else {
                                ct.append(c);
                            }