mirror of
https://github.com/TokTok/c-toxcore
synced 2026-09-16 23:24:43 +00: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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user