mirror of https://github.com/apache/activemq.git
[AMQ-6494] fix check order of close state for onException handler
This commit is contained in:
parent
0752d840b9
commit
63b2e5c4ea
|
@ -1965,7 +1965,7 @@ public class ActiveMQConnection implements Connection, TopicConnection, QueueCon
|
||||||
@Override
|
@Override
|
||||||
public void onException(final IOException error) {
|
public void onException(final IOException error) {
|
||||||
onAsyncException(error);
|
onAsyncException(error);
|
||||||
if (!closing.get() && !closed.get()) {
|
if (!closed.get() && !closing.get()) {
|
||||||
executor.execute(new Runnable() {
|
executor.execute(new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
|
|
Loading…
Reference in New Issue