mirror of https://github.com/apache/activemq.git
https://issues.apache.org/jira/browse/AMQ-3481 - check for tryLock success before unlock
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1186539 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1fd39c991e
commit
1250163f39
|
@ -153,9 +153,11 @@ public abstract class AbstractInactivityMonitor extends TransportFilter {
|
|||
} catch (IOException e) {
|
||||
onException(e);
|
||||
} finally {
|
||||
if (sendLock.writeLock().isHeldByCurrentThread()) {
|
||||
sendLock.writeLock().unlock();
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
});
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue