diff options
Diffstat (limited to 'toxcore/DHT.c')
-rw-r--r-- | toxcore/DHT.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/toxcore/DHT.c b/toxcore/DHT.c index 5041cc4e..be675b26 100644 --- a/toxcore/DHT.c +++ b/toxcore/DHT.c | |||
@@ -2229,6 +2229,13 @@ DHT *new_DHT(Networking_Core *net) | |||
2229 | 2229 | ||
2230 | void do_DHT(DHT *dht) | 2230 | void do_DHT(DHT *dht) |
2231 | { | 2231 | { |
2232 | // Load friends/clients if first call to do_DHT | ||
2233 | if(dht->has_loaded_friends_clients == 0) | ||
2234 | { | ||
2235 | dht->has_loaded_friends_clients = 1; | ||
2236 | DHT_connect_after_load(dht); | ||
2237 | } | ||
2238 | |||
2232 | unix_time_update(); | 2239 | unix_time_update(); |
2233 | 2240 | ||
2234 | if (dht->last_run == unix_time()) { | 2241 | if (dht->last_run == unix_time()) { |