Updating for 2.5.0 release.

git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@7843 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Derek DeMoro
2007-03-30 23:08:12 +00:00
committed by derek
parent 2b3b4c88eb
commit 275892abbf
2 changed files with 4 additions and 0 deletions

Binary file not shown.

View File

@ -99,6 +99,10 @@ public class TransportUtils {
* @return true if the user is registered with the transport.
*/
public static boolean isRegistered(XMPPConnection con, Transport transport) {
if(!con.isConnected()){
return false;
}
ServiceDiscoveryManager discoveryManager = ServiceDiscoveryManager.getInstanceFor(con);
try {
DiscoverInfo info = discoveryManager.discoverInfo(transport.getServiceName());