Skip to content

Commit

Permalink
Don't return from finally
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelklishin committed Dec 19, 2013
1 parent d15d0e9 commit 027ecde
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/java/com/novemberain/langohr/Channel.java
Expand Up @@ -1040,8 +1040,11 @@ public void basicReject(long deliveryTag, boolean requeue) throws IOException {
* @see com.rabbitmq.client.AMQP.Queue.DeleteOk
*/
public AMQP.Queue.DeleteOk queueDelete(String queue, boolean ifUnused, boolean ifEmpty) throws IOException {
this.queues.remove(queue);
return delegate.queueDelete(queue, ifUnused, ifEmpty);
try {
this.queues.remove(queue);
} finally {
return delegate.queueDelete(queue, ifUnused, ifEmpty);
}
}

/**
Expand Down

0 comments on commit 027ecde

Please sign in to comment.