From 41d31e9802c86cc40621fdf7939083c6d79baf21 Mon Sep 17 00:00:00 2001 From: irungentoo Date: Sun, 14 Jul 2013 11:52:32 -0400 Subject: [PATCH] Deleting friend now kills the connection to that friend. --- core/Messenger.c | 1 + 1 file changed, 1 insertion(+) diff --git a/core/Messenger.c b/core/Messenger.c index 08acb4e3..94b4c740 100644 --- a/core/Messenger.c +++ b/core/Messenger.c @@ -157,6 +157,7 @@ int m_delfriend(int friendnumber) } DHT_delfriend(friendlist[friendnumber].client_id); + crypto_kill(friendlist[friendnumber].crypt_connection_id); memset(&friendlist[friendnumber], 0, sizeof(Friend)); uint32_t i; for(i = numfriends; i != 0; i--)