mirror of https://github.com/apache/activemq.git
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@739950 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
564a9c2ca0
commit
59643ef23e
|
@ -175,6 +175,9 @@ public class TransportConnection implements Connection, Task, CommandVisitor {
|
|||
public void onCommand(Object o) {
|
||||
serviceLock.readLock().lock();
|
||||
try {
|
||||
if (!(o instanceof Command)) {
|
||||
throw new RuntimeException("Protocol violation - Command corrupted");
|
||||
}
|
||||
Command command = (Command)o;
|
||||
Response response = service(command);
|
||||
if (response != null) {
|
||||
|
|
Loading…
Reference in New Issue