mirror of
https://github.com/igniterealtime/Spark.git
synced 2025-12-01 12:27:58 +00:00
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:
Binary file not shown.
@ -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());
|
||||
|
||||
Reference in New Issue
Block a user