Deleting friend now kills the connection to that friend.

This commit is contained in:
irungentoo 2013-07-14 11:52:32 -04:00
parent 6e1390554c
commit 41d31e9802

View File

@ -157,6 +157,7 @@ int m_delfriend(int friendnumber)
} }
DHT_delfriend(friendlist[friendnumber].client_id); DHT_delfriend(friendlist[friendnumber].client_id);
crypto_kill(friendlist[friendnumber].crypt_connection_id);
memset(&friendlist[friendnumber], 0, sizeof(Friend)); memset(&friendlist[friendnumber], 0, sizeof(Friend));
uint32_t i; uint32_t i;
for(i = numfriends; i != 0; i--) for(i = numfriends; i != 0; i--)