Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

fixed schoolboy error in logic

  • Loading branch information...
commit 3870eb714ea58801e250a2596ef6b0d8af54e499 1 parent ee9676b
Andy Taylor andytaylor authored
4 hornetq-ra/src/main/java/org/hornetq/ra/inflow/HornetQActivation.java
@@ -606,7 +606,7 @@ else if(failure instanceof HornetQException && !(((HornetQException)failure).get
606 606 {
607 607 if(failure instanceof HornetQException && !(((HornetQException)failure).getType() == HornetQExceptionType.QUEUE_DOES_NOT_EXIST))
608 608 {
609   - if (lastException == null && lastException instanceof HornetQNonExistentQueueException)
  609 + if (lastException == null || !(lastException instanceof HornetQNonExistentQueueException))
610 610 {
611 611 lastException = t;
612 612 HornetQRALogger.LOGGER.awaitingTopicQueueCreation(getActivationSpec().getDestination());
@@ -614,7 +614,7 @@ else if(failure instanceof HornetQException && !(((HornetQException)failure).get
614 614 }
615 615 else if(failure instanceof HornetQException && !(((HornetQException)failure).getType() == HornetQExceptionType.NOT_CONNECTED))
616 616 {
617   - if (lastException == null && lastException instanceof HornetQNotConnectedException)
  617 + if (lastException == null || !(lastException instanceof HornetQNotConnectedException))
618 618 {
619 619 lastException = t;
620 620 HornetQRALogger.LOGGER.awaitingJMSServerCreation();

0 comments on commit 3870eb7

Please sign in to comment.
Something went wrong with that request. Please try again.