use short read timeout when waiting for first stream open. disable read timeout aftwards
This commit is contained in:
parent
a34033dea3
commit
390175e5b3
|
@ -352,7 +352,9 @@ public class XmppConnection implements Runnable {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
localSocket.setSoTimeout(Config.SOCKET_TIMEOUT * 1000);
|
||||||
if (startXmpp(localSocket)) {
|
if (startXmpp(localSocket)) {
|
||||||
|
localSocket.setSoTimeout(0); //reset to 0; once the connection is established we don’t want this
|
||||||
if (!result.equals(storedBackupResult)) {
|
if (!result.equals(storedBackupResult)) {
|
||||||
mXmppConnectionService.databaseBackend.saveResolverResult(domain, result);
|
mXmppConnectionService.databaseBackend.saveResolverResult(domain, result);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue