summaryrefslogtreecommitdiff
path: root/toxcore/onion_client.c
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/onion_client.c')
-rw-r--r--toxcore/onion_client.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/toxcore/onion_client.c b/toxcore/onion_client.c
index e161928b..60a80bc6 100644
--- a/toxcore/onion_client.c
+++ b/toxcore/onion_client.c
@@ -97,6 +97,7 @@ typedef struct Onion_Data_Handler {
97 97
98struct Onion_Client { 98struct Onion_Client {
99 Mono_Time *mono_time; 99 Mono_Time *mono_time;
100 const Logger *logger;
100 101
101 DHT *dht; 102 DHT *dht;
102 Net_Crypto *c; 103 Net_Crypto *c;
@@ -1849,7 +1850,7 @@ void do_onion_client(Onion_Client *onion_c)
1849 onion_c->last_run = mono_time_get(onion_c->mono_time); 1850 onion_c->last_run = mono_time_get(onion_c->mono_time);
1850} 1851}
1851 1852
1852Onion_Client *new_onion_client(Mono_Time *mono_time, Net_Crypto *c) 1853Onion_Client *new_onion_client(const Logger *logger, Mono_Time *mono_time, Net_Crypto *c)
1853{ 1854{
1854 if (c == nullptr) { 1855 if (c == nullptr) {
1855 return nullptr; 1856 return nullptr;
@@ -1869,6 +1870,7 @@ Onion_Client *new_onion_client(Mono_Time *mono_time, Net_Crypto *c)
1869 } 1870 }
1870 1871
1871 onion_c->mono_time = mono_time; 1872 onion_c->mono_time = mono_time;
1873 onion_c->logger = logger;
1872 onion_c->dht = nc_get_dht(c); 1874 onion_c->dht = nc_get_dht(c);
1873 onion_c->net = dht_get_net(onion_c->dht); 1875 onion_c->net = dht_get_net(onion_c->dht);
1874 onion_c->c = c; 1876 onion_c->c = c;