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
|
||||
public void onException(final IOException error) {
|
||||
onAsyncException(error);
|
||||
if (!closing.get() && !closed.get()) {
|
||||
if (!closed.get() && !closing.get()) {
|
||||
executor.execute(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
|
|
Loading…
Reference in New Issue