public class MinaLoginMessageListener extends AbstractLoginMessageListener<ServerMinaMessageGateway> {
private static final Logger log = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());
@Override
protected void ensureCleanup() {
getGateway().addServiceListener(new MinaServiceAdapter() {
@Override
public void sessionDestroyed(IoSession session) throws Exception {
HostPort hostPort = new HostPort((InetSocketAddress) session.getRemoteAddress());
if (loggedInConnections.contains(hostPort)) {