only store non hardcoded resolver result in db

This commit is contained in:
Daniel Gultsch 2018-10-16 12:23:27 +02:00
parent 2edab21423
commit 5f8184fe8e
1 changed files with 1 additions and 1 deletions

View File

@ -355,7 +355,7 @@ public class XmppConnection implements Runnable {
localSocket.setSoTimeout(Config.SOCKET_TIMEOUT * 1000); localSocket.setSoTimeout(Config.SOCKET_TIMEOUT * 1000);
if (startXmpp(localSocket)) { if (startXmpp(localSocket)) {
localSocket.setSoTimeout(0); //reset to 0; once the connection is established we dont want this localSocket.setSoTimeout(0); //reset to 0; once the connection is established we dont want this
if (!result.equals(storedBackupResult)) { if (!hardcoded && !result.equals(storedBackupResult)) {
mXmppConnectionService.databaseBackend.saveResolverResult(domain, result); mXmppConnectionService.databaseBackend.saveResolverResult(domain, result);
} }
break; // successfully connected to server that speaks xmpp break; // successfully connected to server that speaks xmpp