mirror of https://github.com/apache/activemq.git
use compareAndSet() in onException
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@638922 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f55923619d
commit
aa2c8965eb
|
@ -246,7 +246,7 @@ public class InactivityMonitor extends TransportFilter {
|
||||||
|
|
||||||
public void onException(IOException error) {
|
public void onException(IOException error) {
|
||||||
closeDown();
|
closeDown();
|
||||||
if (!failed.getAndSet(true)) {
|
if (!failed.compareAndSet(false,true)) {
|
||||||
transportListener.onException(error);
|
transportListener.onException(error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue