mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Deleting friend now kills the connection to that friend.
This commit is contained in:
parent
6e1390554c
commit
41d31e9802
|
@ -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--)
|
||||
|
|
Loading…
Reference in New Issue
Block a user