Assert that we don't kill tox before killing toxav.

Possibly this is what's happening in #1149.
This commit is contained in:
iphydf 2018-09-09 08:29:23 +00:00
parent 33c2f5138f
commit 9f1757e3a5
No known key found for this signature in database
GPG Key ID: 3855DBA2D74403C9

View File

@ -530,6 +530,7 @@ void tox_kill(Tox *tox)
} }
Messenger *m = tox->m; Messenger *m = tox->m;
assert(m->msi_packet == nullptr && "Attempted to kill tox while toxav is still alive");
kill_groupchats(m->conferences_object); kill_groupchats(m->conferences_object);
kill_messenger(m); kill_messenger(m);
mono_time_free(tox->mono_time); mono_time_free(tox->mono_time);