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
1 changed files with 1 additions and 1 deletions

View File

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