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:
Robert Davies 2008-03-19 16:26:53 +00:00
parent f55923619d
commit aa2c8965eb
1 changed files with 1 additions and 1 deletions

View File

@ -246,7 +246,7 @@ public class InactivityMonitor extends TransportFilter {
public void onException(IOException error) {
closeDown();
if (!failed.getAndSet(true)) {
if (!failed.compareAndSet(false,true)) {
transportListener.onException(error);
}
}