summaryrefslogtreecommitdiff
path: root/toxcore/Messenger.c
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/Messenger.c')
-rw-r--r--toxcore/Messenger.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/toxcore/Messenger.c b/toxcore/Messenger.c
index f9bd68c2..9869f738 100644
--- a/toxcore/Messenger.c
+++ b/toxcore/Messenger.c
@@ -1595,11 +1595,7 @@ Messenger *new_messenger(Messenger_Options *options)
1595 return NULL; 1595 return NULL;
1596 } 1596 }
1597 1597
1598 if (options->proxy_enabled) { 1598 m->net_crypto = new_net_crypto(m->dht, &options->proxy_info);
1599 m->net_crypto = new_net_crypto(m->dht, &options->proxy_info);
1600 } else {
1601 m->net_crypto = new_net_crypto(m->dht, 0);
1602 }
1603 1599
1604 if (m->net_crypto == NULL) { 1600 if (m->net_crypto == NULL) {
1605 kill_networking(m->net); 1601 kill_networking(m->net);