summaryrefslogtreecommitdiff
path: root/toxcore/Messenger.c
diff options
context:
space:
mode:
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