From 0938ba08d9a839df4111168f3414099268d69737 Mon Sep 17 00:00:00 2001 From: irungentoo Date: Wed, 16 Dec 2015 17:22:07 -0500 Subject: [PATCH] Send get nodes instead of ping to timing out nodes. --- toxcore/DHT.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toxcore/DHT.c b/toxcore/DHT.c index a4b1c4b3..14c59a3d 100644 --- a/toxcore/DHT.c +++ b/toxcore/DHT.c @@ -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; }