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

View file

@ -355,7 +355,7 @@ public class XmppConnection implements Runnable {
localSocket.setSoTimeout(Config.SOCKET_TIMEOUT * 1000);
if (startXmpp(localSocket)) {
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);
}
break; // successfully connected to server that speaks xmpp