access disco over caching mechanism instead of querying db

This commit is contained in:
Daniel Gultsch 2016-05-19 10:44:16 +02:00
parent 70497318dd
commit 3f65b0e985

View file

@ -1027,7 +1027,7 @@ public class XmppConnection implements Runnable {
final String ver = caps == null ? null : caps.getAttribute("ver");
ServiceDiscoveryResult discoveryResult = null;
if (hash != null && ver != null) {
discoveryResult = mXmppConnectionService.databaseBackend.findDiscoveryResult(hash, ver);
discoveryResult = mXmppConnectionService.getCachedServiceDiscoveryResult(new Pair<>(hash, ver));
}
if (discoveryResult == null) {
sendServiceDiscoveryInfo(account.getServer());