// session is closed from within the MessageListener.onMessage(), for example), so no need
// to register another Closer (see http://jira.jboss.org/jira/browse/JBMESSAGING-542)
return;
}
Future result = new Future();
Closer closer = new Closer(result);
sessionExecutor.execute(closer);
//https://issues.jboss.org/browse/JBMESSAGING-1883
if (closer.getState() == StatefulRunnable.NORMAL)
{
if (trace) { log.trace(this + " blocking wait for Closer execution"); }
result.getResult();
}
else
{
if (trace) { log.trace(this + " won't wait for Closer as the executor is closed already"); }
}