From 951dbc1258b094e307957b4fd423e81c9a4778ee Mon Sep 17 00:00:00 2001 From: slvr Date: Sat, 10 Aug 2013 00:54:43 +0100 Subject: [PATCH] Updated initMessenger --- core/Messenger.c | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/core/Messenger.c b/core/Messenger.c index 082b10d2..a7d21e1a 100644 --- a/core/Messenger.c +++ b/core/Messenger.c @@ -517,6 +517,11 @@ int initMessenger(void) if(init_networking(ip,PORT) == -1) return -1; + DHT_init(); + LosslessUDP_init(); + friendreq_init(); + LANdiscovery_init(); + return 0; } @@ -684,7 +689,7 @@ static void LANdiscovery(void) void doMessenger(void) { networking_poll(); - + doDHT(); doLossless_UDP(); doNetCrypto(); @@ -693,14 +698,6 @@ void doMessenger(void) LANdiscovery(); } -void Messenger_init(void) -{ - DHT_init(); - LosslessUDP_init(); - friendreq_init(); - LANdiscovery_init(); -} - /* returns the size of the messenger data (for saving) */ uint32_t Messenger_size(void) {