diff options
Diffstat (limited to 'toxcore/Messenger.c')
-rw-r--r-- | toxcore/Messenger.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/toxcore/Messenger.c b/toxcore/Messenger.c index e138b23e..a6bfbc8a 100644 --- a/toxcore/Messenger.c +++ b/toxcore/Messenger.c | |||
@@ -2862,20 +2862,20 @@ int messenger_load(Messenger *m, const uint8_t *data, uint32_t length) | |||
2862 | /* Connect after loading messenger from file */ | 2862 | /* Connect after loading messenger from file */ |
2863 | int messenger_connect(Messenger *m) | 2863 | int messenger_connect(Messenger *m) |
2864 | { | 2864 | { |
2865 | int i; | 2865 | int i; |
2866 | 2866 | ||
2867 | if(m == NULL) | 2867 | if(m == NULL) |
2868 | return -1; | 2868 | return -1; |
2869 | 2869 | ||
2870 | DHT *dht = m->dht; | 2870 | DHT *dht = m->dht; |
2871 | if(DHT_connect_after_load(dht) == -1) | 2871 | if(DHT_connect_after_load(dht) == -1) |
2872 | return -1; | 2872 | return -1; |
2873 | 2873 | ||
2874 | for (i = 0; i < NUM_SAVED_TCP_RELAYS; ++i) { | 2874 | for (i = 0; i < NUM_SAVED_TCP_RELAYS; ++i) { |
2875 | add_tcp_relay(m->net_crypto, m->loaded_relays[i].ip_port, m->loaded_relays[i].client_id); | 2875 | add_tcp_relay(m->net_crypto, m->loaded_relays[i].ip_port, m->loaded_relays[i].client_id); |
2876 | } | 2876 | } |
2877 | 2877 | ||
2878 | return 0; | 2878 | return 0; |
2879 | } | 2879 | } |
2880 | 2880 | ||
2881 | /* Return the number of friends in the instance m. | 2881 | /* Return the number of friends in the instance m. |