summaryrefslogtreecommitdiff
path: root/toxcore/net_crypto.c
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/net_crypto.c')
-rw-r--r--toxcore/net_crypto.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/toxcore/net_crypto.c b/toxcore/net_crypto.c
index 8f5fd507..bd214b91 100644
--- a/toxcore/net_crypto.c
+++ b/toxcore/net_crypto.c
@@ -2925,8 +2925,6 @@ void load_secret_key(Net_Crypto *c, const uint8_t *sk)
2925 */ 2925 */
2926Net_Crypto *new_net_crypto(const Logger *log, DHT *dht, TCP_Proxy_Info *proxy_info) 2926Net_Crypto *new_net_crypto(const Logger *log, DHT *dht, TCP_Proxy_Info *proxy_info)
2927{ 2927{
2928 unix_time_update();
2929
2930 if (dht == nullptr) { 2928 if (dht == nullptr) {
2931 return nullptr; 2929 return nullptr;
2932 } 2930 }
@@ -3016,7 +3014,6 @@ uint32_t crypto_run_interval(const Net_Crypto *c)
3016/* Main loop. */ 3014/* Main loop. */
3017void do_net_crypto(Net_Crypto *c, void *userdata) 3015void do_net_crypto(Net_Crypto *c, void *userdata)
3018{ 3016{
3019 unix_time_update();
3020 kill_timedout(c, userdata); 3017 kill_timedout(c, userdata);
3021 do_tcp(c, userdata); 3018 do_tcp(c, userdata);
3022 send_crypto_packets(c); 3019 send_crypto_packets(c);