summaryrefslogtreecommitdiff
path: root/toxcore/tox.c
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2018-09-09 08:29:23 +0000
committeriphydf <iphydf@users.noreply.github.com>2018-09-10 18:51:51 +0000
commit9f1757e3a50c17fcd00ab3778846ef520aa99b74 (patch)
tree3c60e9c15dbcb8668c61677b3bf4c7ea8097af88 /toxcore/tox.c
parent33c2f5138f3b2e20b97d0fe8405aadb32dedf403 (diff)
Assert that we don't kill tox before killing toxav.
Possibly this is what's happening in #1149.
Diffstat (limited to 'toxcore/tox.c')
-rw-r--r--toxcore/tox.c1
1 files changed, 1 insertions, 0 deletions
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)
530 } 530 }
531 531
532 Messenger *m = tox->m; 532 Messenger *m = tox->m;
533 assert(m->msi_packet == nullptr && "Attempted to kill tox while toxav is still alive");
533 kill_groupchats(m->conferences_object); 534 kill_groupchats(m->conferences_object);
534 kill_messenger(m); 535 kill_messenger(m);
535 mono_time_free(tox->mono_time); 536 mono_time_free(tox->mono_time);