mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Kill_messenger now kills group chats.
This commit is contained in:
parent
f21a9a7666
commit
2b94408adc
|
@ -1514,6 +1514,10 @@ void kill_messenger(Messenger *m)
|
||||||
/* FIXME TODO: ideally cleanupMessenger will mirror initMessenger.
|
/* FIXME TODO: ideally cleanupMessenger will mirror initMessenger.
|
||||||
* This requires the other modules to expose cleanup functions.
|
* This requires the other modules to expose cleanup functions.
|
||||||
*/
|
*/
|
||||||
|
uint32_t i, numchats = m->numchats;
|
||||||
|
for (i = 0; i < numchats; ++i)
|
||||||
|
del_groupchat(m, i);
|
||||||
|
|
||||||
kill_DHT(m->dht);
|
kill_DHT(m->dht);
|
||||||
kill_net_crypto(m->net_crypto);
|
kill_net_crypto(m->net_crypto);
|
||||||
kill_networking(m->net);
|
kill_networking(m->net);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user