summaryrefslogtreecommitdiff
path: root/toxcore/Messenger.c
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2013-09-22 11:08:23 -0400
committerirungentoo <irungentoo@gmail.com>2013-09-22 11:08:23 -0400
commit83c6e9dd357a64cb60ebeb33dd96d85256820366 (patch)
tree6fcdd6b7b2cada55918607e0fa9b7b693bd28aa4 /toxcore/Messenger.c
parent1cc47101fec6a13a3eb5894cdb029420d3ae0ec4 (diff)
Fixed the connection bug and cleaned up some stuff.
Diffstat (limited to 'toxcore/Messenger.c')
-rw-r--r--toxcore/Messenger.c4
1 files changed, 1 insertions, 3 deletions
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)
1232 1232
1233 if (friend_id != -1) { 1233 if (friend_id != -1) {
1234 if (m_get_friend_connectionstatus(m, friend_id) == 1) { 1234 if (m_get_friend_connectionstatus(m, friend_id) == 1) {
1235 crypto_kill(m->net_crypto, inconnection); 1235 kill_connection(m->net_crypto->lossless_udp, inconnection);
1236 return; 1236 return;
1237 } 1237 }
1238 1238
@@ -1242,8 +1242,6 @@ void doInbound(Messenger *m)
1242 1242
1243 set_friend_status(m, friend_id, FRIEND_CONFIRMED); 1243 set_friend_status(m, friend_id, FRIEND_CONFIRMED);
1244 } 1244 }
1245
1246 crypto_kill(m->net_crypto, inconnection);
1247 } 1245 }
1248} 1246}
1249 1247