Commit c67b1391 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gaston

Super minor code refactoring. :)


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@857 b35dd754-fafc-0310-a699-88a17e54d16e
parent 4c6e3b05
......@@ -26,7 +26,6 @@ import org.jivesoftware.messenger.PresenceManager;
import org.jivesoftware.messenger.Session;
import org.jivesoftware.messenger.SessionManager;
import org.jivesoftware.messenger.XMPPServer;
import org.jivesoftware.messenger.auth.UnauthorizedException;
import org.jivesoftware.messenger.container.BasicModule;
import org.jivesoftware.messenger.user.User;
import org.jivesoftware.messenger.user.UserManager;
......@@ -230,12 +229,7 @@ public class PresenceManagerImpl extends BasicModule implements PresenceManager
}
public boolean isAvailable(User user) {
try {
return sessionManager.getSessionCount(user.getUsername()) > 0;
}
catch (UnauthorizedException ue) {
}
return false;
return sessionManager.getSessionCount(user.getUsername()) > 0;
}
public Presence getPresence(User user) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment