mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Adjusted some delays.
Decreased LAN discovery packet sending interval. Attempted fix of the everyone is unknown bug in group chats.
This commit is contained in:
parent
1ef5d40935
commit
fd3dc22ef3
|
@ -36,7 +36,7 @@
|
|||
#endif
|
||||
|
||||
/* Interval in seconds between LAN discovery packet sending. */
|
||||
#define LAN_DISCOVERY_INTERVAL 60
|
||||
#define LAN_DISCOVERY_INTERVAL 10
|
||||
|
||||
/* Send a LAN discovery pcaket to the broadcast address with port port. */
|
||||
int send_LANdiscovery(uint16_t port, DHT *dht);
|
||||
|
|
|
@ -798,7 +798,7 @@ static void del_dead_peers(Group_Chat *chat)
|
|||
static void send_names_new_peer(Group_Chat *chat)
|
||||
{
|
||||
group_send_nick(chat, chat->nick, chat->nick_len);
|
||||
chat->last_sent_nick = (unix_time() - NICK_SEND_INTERVAL) + 10;
|
||||
chat->last_sent_nick = (unix_time() - NICK_SEND_INTERVAL) + 15;
|
||||
}
|
||||
static void send_names(Group_Chat *chat)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user