From 9f1757e3a50c17fcd00ab3778846ef520aa99b74 Mon Sep 17 00:00:00 2001 From: iphydf Date: Sun, 9 Sep 2018 08:29:23 +0000 Subject: [PATCH] Assert that we don't kill tox before killing toxav. Possibly this is what's happening in #1149. --- toxcore/tox.c | 1 + 1 file changed, 1 insertion(+) diff --git a/toxcore/tox.c b/toxcore/tox.c index 558fe28a..5258e9b6 100644 --- a/toxcore/tox.c +++ b/toxcore/tox.c @@ -530,6 +530,7 @@ void tox_kill(Tox *tox) } Messenger *m = tox->m; + assert(m->msi_packet == nullptr && "Attempted to kill tox while toxav is still alive"); kill_groupchats(m->conferences_object); kill_messenger(m); mono_time_free(tox->mono_time);