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:
irungentoo 2014-02-16 11:40:20 -05:00
parent 1ef5d40935
commit fd3dc22ef3
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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)
{