1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

oops, don't reset tolerance upon bootstrap

This commit is contained in:
dubslow 2014-09-29 21:29:39 -05:00
parent d1919658e1
commit 4719ea28a8

View File

@ -244,9 +244,8 @@ void Core::process()
if (checkConnection())
tolerance = CORE_DISCONNECT_TOLERANCE;
else if (--tolerance)
else if (!(--tolerance))
{
tolerance = CORE_DISCONNECT_TOLERANCE;
bootstrapDht();
}
@ -285,7 +284,7 @@ void Core::bootstrapDht()
qDebug() << "Core: Bootstraping to the DHT ...";
int i=0;
while (i < 3)
while (i < 4)
{
const Settings::DhtServer& dhtServer = dhtServerList[j % listSize];
if (tox_bootstrap_from_address(tox, dhtServer.address.toLatin1().data(),