From 888e9d30cbf4efde17ee337b9b97f1960bbd74a2 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Mon, 2 Mar 2020 19:44:47 +0100 Subject: Music is pretty bav --- src/ft_exit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ft_exit.c') diff --git a/src/ft_exit.c b/src/ft_exit.c index a19bff3..c022627 100644 --- a/src/ft_exit.c +++ b/src/ft_exit.c @@ -63,7 +63,7 @@ int mlx_destroy_window(clist->wlist->wlx, clist->wlist->winptr); clist->wlist->winptr = NULL; } - if (clist->mlist->ismusic) + if (clist->isoldmus && clist->wlist->inited) { pthread_cancel(clist->tid); pthread_join(clist->tid, NULL); -- cgit v1.2.3