Dolda2000 GitWeb
/
doldaconnect.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Java: Began work on hub listeners.
[doldaconnect.git]
/
lib
/
java
/
dolda
/
dolcon
/
protocol
/
Connection.java
diff --git
a/lib/java/dolda/dolcon/protocol/Connection.java
b/lib/java/dolda/dolcon/protocol/Connection.java
index
43cf5a3
..
b596639
100644
(file)
--- a/
lib/java/dolda/dolcon/protocol/Connection.java
+++ b/
lib/java/dolda/dolcon/protocol/Connection.java
@@
-183,9
+183,10
@@
public class Connection {
}
}
}
}
- public void qcmd(Command
cmd
) {
+ public void qcmd(Command
... cmds
) {
synchronized(queue) {
synchronized(queue) {
- queue.offer(cmd);
+ for(Command cmd : cmds)
+ queue.offer(cmd);
queue.notifyAll();
}
}
queue.notifyAll();
}
}
@@
-381,7
+382,6
@@
public class Connection {
code = Integer.parseInt(ct.toString());
ct.setLength(0);
state = "start";
code = Integer.parseInt(ct.toString());
ct.setLength(0);
state = "start";
- continue eat;
} else {
ct.append(c);
}
} else {
ct.append(c);
}