mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fixed bug.
This commit is contained in:
parent
980318a8c6
commit
04d13fbbaf
|
@ -766,11 +766,11 @@ static void do_friend(Onion_Client *onion_c, uint16_t friendnum)
|
||||||
|
|
||||||
/* send packets to friend telling them our fake DHT id. */
|
/* send packets to friend telling them our fake DHT id. */
|
||||||
if (is_timeout(onion_c->friends_list[friendnum].last_fakeid_onion_sent, ONION_FAKEID_INTERVAL))
|
if (is_timeout(onion_c->friends_list[friendnum].last_fakeid_onion_sent, ONION_FAKEID_INTERVAL))
|
||||||
if (send_fakeid_announce(onion_c, friendnum, 0) > 1)
|
if (send_fakeid_announce(onion_c, friendnum, 0) >= 1)
|
||||||
onion_c->friends_list[friendnum].last_fakeid_onion_sent = unix_time();
|
onion_c->friends_list[friendnum].last_fakeid_onion_sent = unix_time();
|
||||||
|
|
||||||
if (is_timeout(onion_c->friends_list[friendnum].last_fakeid_dht_sent, DHT_FAKEID_INTERVAL))
|
if (is_timeout(onion_c->friends_list[friendnum].last_fakeid_dht_sent, DHT_FAKEID_INTERVAL))
|
||||||
if (send_fakeid_announce(onion_c, friendnum, 1) > 1)
|
if (send_fakeid_announce(onion_c, friendnum, 1) >= 1)
|
||||||
onion_c->friends_list[friendnum].last_fakeid_dht_sent = unix_time();
|
onion_c->friends_list[friendnum].last_fakeid_dht_sent = unix_time();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user