summaryrefslogtreecommitdiff
path: root/core/Messenger.c
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2013-07-14 11:52:32 -0400
committerirungentoo <irungentoo@gmail.com>2013-07-14 11:52:32 -0400
commit41d31e9802c86cc40621fdf7939083c6d79baf21 (patch)
tree677a5e816654d33173f1e13005df2d9d71ebf333 /core/Messenger.c
parent6e1390554c5fa346e9ed8c4a562699fbb6e878a5 (diff)
Deleting friend now kills the connection to that friend.
Diffstat (limited to 'core/Messenger.c')
-rw-r--r--core/Messenger.c1
1 files changed, 1 insertions, 0 deletions
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)
157 } 157 }
158 158
159 DHT_delfriend(friendlist[friendnumber].client_id); 159 DHT_delfriend(friendlist[friendnumber].client_id);
160 crypto_kill(friendlist[friendnumber].crypt_connection_id);
160 memset(&friendlist[friendnumber], 0, sizeof(Friend)); 161 memset(&friendlist[friendnumber], 0, sizeof(Friend));
161 uint32_t i; 162 uint32_t i;
162 for(i = numfriends; i != 0; i--) 163 for(i = numfriends; i != 0; i--)