mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
All modules using unix_time should run unix_time_update()
This commit is contained in:
parent
b891446c31
commit
9ccdac0e82
@ -530,6 +530,8 @@ void callback_groupmessage(Group_Chat *chat, void (*function)(Group_Chat *chat,
|
||||
|
||||
Group_Chat *new_groupchat(Networking_Core *net)
|
||||
{
|
||||
unix_time_update();
|
||||
|
||||
if (net == 0)
|
||||
return 0;
|
||||
|
||||
@ -561,6 +563,7 @@ static void ping_close(Group_Chat *chat)
|
||||
|
||||
void do_groupchat(Group_Chat *chat)
|
||||
{
|
||||
unix_time_update();
|
||||
ping_close(chat);
|
||||
}
|
||||
|
||||
|
@ -753,6 +753,8 @@ static void receive_crypto(Net_Crypto *c)
|
||||
*/
|
||||
Net_Crypto *new_net_crypto(Networking_Core *net)
|
||||
{
|
||||
unix_time_update();
|
||||
|
||||
if (net == NULL)
|
||||
return NULL;
|
||||
|
||||
@ -791,6 +793,7 @@ static void kill_timedout(Net_Crypto *c)
|
||||
/* Main loop. */
|
||||
void do_net_crypto(Net_Crypto *c)
|
||||
{
|
||||
unix_time_update();
|
||||
do_lossless_udp(c->lossless_udp);
|
||||
kill_timedout(c);
|
||||
receive_crypto(c);
|
||||
|
Loading…
x
Reference in New Issue
Block a user