diff options
author | Ingo Bauersachs <ingo@jitsi.org> | 2016-05-18 23:03:19 +0200 |
---|---|---|
committer | Ingo Bauersachs <ingo@jitsi.org> | 2016-05-18 23:03:19 +0200 |
commit | 24297d644f5cda26393d0379b6ecd2801a40a198 (patch) | |
tree | 2f2f5805625a05852caa69ad12b9647301a86dfd | |
parent | ad61332a3e000d30fd3a2c24d2d3c6f1430f4c46 (diff) | |
download | jitsi-24297d644f5cda26393d0379b6ecd2801a40a198.zip jitsi-24297d644f5cda26393d0379b6ecd2801a40a198.tar.gz jitsi-24297d644f5cda26393d0379b6ecd2801a40a198.tar.bz2 |
Don't claim features as supported if no info available
-rw-r--r-- | src/net/java/sip/communicator/impl/protocol/jabber/ProtocolProviderServiceJabberImpl.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/net/java/sip/communicator/impl/protocol/jabber/ProtocolProviderServiceJabberImpl.java b/src/net/java/sip/communicator/impl/protocol/jabber/ProtocolProviderServiceJabberImpl.java index 888c0aa..1d08250 100644 --- a/src/net/java/sip/communicator/impl/protocol/jabber/ProtocolProviderServiceJabberImpl.java +++ b/src/net/java/sip/communicator/impl/protocol/jabber/ProtocolProviderServiceJabberImpl.java @@ -2417,18 +2417,16 @@ public class ProtocolProviderServiceJabberImpl */ public boolean isFeatureListSupported(String jid, String... features) { - boolean isFeatureListSupported = true; - try { if(discoveryManager == null) - return isFeatureListSupported; + return false; DiscoverInfo featureInfo = discoveryManager.discoverInfoNonBlocking(jid); if(featureInfo == null) - return isFeatureListSupported; + return false; for (String feature : features) { @@ -2436,17 +2434,19 @@ public class ProtocolProviderServiceJabberImpl { // If one is not supported we return false and don't check // the others. - isFeatureListSupported = false; - break; + return false; } } + + return true; } catch (XMPPException e) { if (logger.isDebugEnabled()) logger.debug("Failed to retrive discovery info.", e); } - return isFeatureListSupported; + + return false; } /** |