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:
parent
d1919658e1
commit
4719ea28a8
5
core.cpp
5
core.cpp
|
@ -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(),
|
||||
|
|
Loading…
Reference in New Issue
Block a user