Skip to content

Commit 0938ba0

Browse files
committed
Send get nodes instead of ping to timing out nodes.
1 parent d6b4761 commit 0938ba0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

toxcore/DHT.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1461,7 +1461,7 @@ static uint8_t do_ping_and_sendnode_requests(DHT *dht, uint64_t *lastgetnode, co
14611461
not_kill++;
14621462

14631463
if (is_timeout(assoc->last_pinged, PING_INTERVAL)) {
1464-
send_ping_request(dht->ping, assoc->ip_port, client->public_key );
1464+
getnodes(dht, assoc->ip_port, client->public_key, public_key, NULL);
14651465
assoc->last_pinged = temp_time;
14661466
}
14671467

0 commit comments

Comments
 (0)