From 83c6e9dd357a64cb60ebeb33dd96d85256820366 Mon Sep 17 00:00:00 2001 From: irungentoo Date: Sun, 22 Sep 2013 11:08:23 -0400 Subject: Fixed the connection bug and cleaned up some stuff. --- toxcore/Messenger.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'toxcore/Messenger.c') diff --git a/toxcore/Messenger.c b/toxcore/Messenger.c index d595c67d..43db2a9d 100644 --- a/toxcore/Messenger.c +++ b/toxcore/Messenger.c @@ -1232,7 +1232,7 @@ void doInbound(Messenger *m) if (friend_id != -1) { if (m_get_friend_connectionstatus(m, friend_id) == 1) { - crypto_kill(m->net_crypto, inconnection); + kill_connection(m->net_crypto->lossless_udp, inconnection); return; } @@ -1242,8 +1242,6 @@ void doInbound(Messenger *m) set_friend_status(m, friend_id, FRIEND_CONFIRMED); } - - crypto_kill(m->net_crypto, inconnection); } } -- cgit v1.2.3