diff options
Diffstat (limited to 'toxcore/net_crypto.c')
-rw-r--r-- | toxcore/net_crypto.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/toxcore/net_crypto.c b/toxcore/net_crypto.c index a9aa77f9..9b8eff96 100644 --- a/toxcore/net_crypto.c +++ b/toxcore/net_crypto.c | |||
@@ -753,6 +753,8 @@ static void receive_crypto(Net_Crypto *c) | |||
753 | */ | 753 | */ |
754 | Net_Crypto *new_net_crypto(Networking_Core *net) | 754 | Net_Crypto *new_net_crypto(Networking_Core *net) |
755 | { | 755 | { |
756 | unix_time_update(); | ||
757 | |||
756 | if (net == NULL) | 758 | if (net == NULL) |
757 | return NULL; | 759 | return NULL; |
758 | 760 | ||
@@ -791,6 +793,7 @@ static void kill_timedout(Net_Crypto *c) | |||
791 | /* Main loop. */ | 793 | /* Main loop. */ |
792 | void do_net_crypto(Net_Crypto *c) | 794 | void do_net_crypto(Net_Crypto *c) |
793 | { | 795 | { |
796 | unix_time_update(); | ||
794 | do_lossless_udp(c->lossless_udp); | 797 | do_lossless_udp(c->lossless_udp); |
795 | kill_timedout(c); | 798 | kill_timedout(c); |
796 | receive_crypto(c); | 799 | receive_crypto(c); |