use of org.jivesoftware.openfire.ConnectionCloseListener in project Openfire by igniterealtime.
the class NIOConnection method reinit.
@Override
public void reinit(LocalSession owner) {
session = owner;
StanzaHandler stanzaHandler = getStanzaHandler();
stanzaHandler.setSession(owner);
// during the callback. OF-2014
for (final Map.Entry<ConnectionCloseListener, Object> entry : closeListeners.entrySet()) {
if (entry.getValue() instanceof LocalSession) {
entry.setValue(owner);
}
}
}
Aggregations