diff options
author | Christian Schneppe <christian@pix-art.de> | 2018-10-20 21:50:40 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2018-10-20 21:50:40 +0200 |
commit | 1b8a0e6d50eb2be5350d5b38ee84aa9ad1e526e2 (patch) | |
tree | 23e7338e9f79323bbe4e11b85e348abfb6e948bf /src/main | |
parent | 3186893cfd4626173a758487fc49810d0aa419ac (diff) |
only store non hardcoded resolver result in db
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/de/pixart/messenger/xmpp/XmppConnection.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/xmpp/XmppConnection.java b/src/main/java/de/pixart/messenger/xmpp/XmppConnection.java index f21e3f47d..73cfbab86 100644 --- a/src/main/java/de/pixart/messenger/xmpp/XmppConnection.java +++ b/src/main/java/de/pixart/messenger/xmpp/XmppConnection.java @@ -380,7 +380,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 don’t want this - if (!result.equals(storedBackupResult)) { + if (!hardcoded && !result.equals(storedBackupResult)) { mXmppConnectionService.databaseBackend.saveResolverResult(domain, result); } break; // successfully connected to server that speaks xmpp |