Author: david.lloyd(a)jboss.com
Date: 2008-11-12 00:21:58 -0500 (Wed, 12 Nov 2008)
New Revision: 4655
Modified:
remoting3/trunk/core/src/main/java/org/jboss/remoting/core/RequestContextImpl.java
Log:
A response is known to be unsent if "closed" was *false*, not *true*...
Modified:
remoting3/trunk/core/src/main/java/org/jboss/remoting/core/RequestContextImpl.java
===================================================================
---
remoting3/trunk/core/src/main/java/org/jboss/remoting/core/RequestContextImpl.java 2008-11-08
20:19:22 UTC (rev 4654)
+++
remoting3/trunk/core/src/main/java/org/jboss/remoting/core/RequestContextImpl.java 2008-11-12
05:21:58 UTC (rev 4655)
@@ -156,7 +156,7 @@
}
void finishTask() {
- if (taskCount.decrementAndGet() == 0 && closed.getAndSet(true)) {
+ if (taskCount.decrementAndGet() == 0 && ! closed.getAndSet(true)) {
// no response sent! send back IndeterminateOutcomeException
SpiUtils.safeHandleException(replyHandler, new
IndeterminateOutcomeException("No reply was sent by the request listener"));
}