mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Send get nodes instead of ping to timing out nodes.
This commit is contained in:
parent
d6b4761c2f
commit
0938ba08d9
@ -1461,7 +1461,7 @@ static uint8_t do_ping_and_sendnode_requests(DHT *dht, uint64_t *lastgetnode, co
|
||||
not_kill++;
|
||||
|
||||
if (is_timeout(assoc->last_pinged, PING_INTERVAL)) {
|
||||
send_ping_request(dht->ping, assoc->ip_port, client->public_key );
|
||||
getnodes(dht, assoc->ip_port, client->public_key, public_key, NULL);
|
||||
assoc->last_pinged = temp_time;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user