diff options
Diffstat (limited to 'toxcore')
-rw-r--r-- | toxcore/onion_client.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/toxcore/onion_client.c b/toxcore/onion_client.c index 00c1a6b6..dd97a1cd 100644 --- a/toxcore/onion_client.c +++ b/toxcore/onion_client.c | |||
@@ -766,11 +766,11 @@ static void do_friend(Onion_Client *onion_c, uint16_t friendnum) | |||
766 | 766 | ||
767 | /* send packets to friend telling them our fake DHT id. */ | 767 | /* send packets to friend telling them our fake DHT id. */ |
768 | if (is_timeout(onion_c->friends_list[friendnum].last_fakeid_onion_sent, ONION_FAKEID_INTERVAL)) | 768 | if (is_timeout(onion_c->friends_list[friendnum].last_fakeid_onion_sent, ONION_FAKEID_INTERVAL)) |
769 | if (send_fakeid_announce(onion_c, friendnum, 0) > 1) | 769 | if (send_fakeid_announce(onion_c, friendnum, 0) >= 1) |
770 | onion_c->friends_list[friendnum].last_fakeid_onion_sent = unix_time(); | 770 | onion_c->friends_list[friendnum].last_fakeid_onion_sent = unix_time(); |
771 | 771 | ||
772 | if (is_timeout(onion_c->friends_list[friendnum].last_fakeid_dht_sent, DHT_FAKEID_INTERVAL)) | 772 | if (is_timeout(onion_c->friends_list[friendnum].last_fakeid_dht_sent, DHT_FAKEID_INTERVAL)) |
773 | if (send_fakeid_announce(onion_c, friendnum, 1) > 1) | 773 | if (send_fakeid_announce(onion_c, friendnum, 1) >= 1) |
774 | onion_c->friends_list[friendnum].last_fakeid_dht_sent = unix_time(); | 774 | onion_c->friends_list[friendnum].last_fakeid_dht_sent = unix_time(); |
775 | } | 775 | } |
776 | } | 776 | } |