a slightly better onClose impl. Still not right

This commit is contained in:
Greg Wilkins 2016-05-18 19:09:23 +10:00
parent 1168115d5a
commit 353b1b14c4
1 changed files with 1 additions and 1 deletions

View File

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