All modules using unix_time should run unix_time_update()

This commit is contained in:
irungentoo 2013-10-25 14:47:34 -04:00
parent b891446c31
commit 9ccdac0e82
2 changed files with 6 additions and 0 deletions

View File

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

View File

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