Permalink
Browse files

Merge pull request #678 from andytaylor/master

fix logic error
  • Loading branch information...
2 parents e1942dd + 3870eb7 commit 0508de5995f71124525371cd631d9a5a0f08c51a @FranciscoBorges FranciscoBorges committed Nov 16, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 hornetq-ra/src/main/java/org/hornetq/ra/inflow/HornetQActivation.java
@@ -606,15 +606,15 @@ else if(failure instanceof HornetQException && !(((HornetQException)failure).get
{
if(failure instanceof HornetQException && !(((HornetQException)failure).getType() == HornetQExceptionType.QUEUE_DOES_NOT_EXIST))
{
- if (lastException == null && lastException instanceof HornetQNonExistentQueueException)
+ if (lastException == null || !(lastException instanceof HornetQNonExistentQueueException))
{
lastException = t;
HornetQRALogger.LOGGER.awaitingTopicQueueCreation(getActivationSpec().getDestination());
}
}
else if(failure instanceof HornetQException && !(((HornetQException)failure).getType() == HornetQExceptionType.NOT_CONNECTED))
{
- if (lastException == null && lastException instanceof HornetQNotConnectedException)
+ if (lastException == null || !(lastException instanceof HornetQNotConnectedException))
{
lastException = t;
HornetQRALogger.LOGGER.awaitingJMSServerCreation();

0 comments on commit 0508de5

Please sign in to comment.