another onClose fix attempt

This commit is contained in:
Greg Wilkins 2016-05-18 17:09:45 +10:00
parent c727518d5c
commit 1168115d5a
2 changed files with 12 additions and 13 deletions

View File

@ -426,18 +426,18 @@ public class ManagedSelector extends AbstractLifeCycle implements Runnable, Dump
public void onClose(final EndPoint endPoint)
{
final Connection connection = endPoint.getConnection();
submit(new Product()
{
@Override
public void run()
if (connection!=null)
submit(new Product()
{
if (LOG.isDebugEnabled())
LOG.debug("Destroyed {}", endPoint);
if (connection != null)
_selectorManager.connectionClosed(connection);
_selectorManager.endPointClosed(endPoint);
}
});
@Override
public void run()
{
if (LOG.isDebugEnabled())
LOG.debug("Destroyed {}", endPoint);
if (connection != null)
_selectorManager.connectionClosed(connection);
}
});
}
@Override

View File

@ -314,8 +314,7 @@ public abstract class SelectorManager extends ContainerLifeCycle implements Dump
*/
protected void endPointClosed(EndPoint endpoint)
{
// TODO fix this
// endpoint.onClose();
endpoint.onClose();
}
/**