I am currently looking for possible leaks in my code and i’ve been going in circles … which leads me to my question … I’m just wondering …
What happens when the login fails due to some reason (Bad Username, Bad Password, etc) ?
Cuz the TransportSession was already added into the Sessionmanager even before the session was authenticated since the login was being done by a separate thread.
session = this.registrationLoggedIn(registration, from, getPresenceType(packet), packet.getStatus(), packet.getPriority());
So far I’ve been looking at the code and I don’t see anything that removes the errant session from the session manager in case it fails to login.
So, Did I miss something?
Thanks in advance!