From 059768825bcf68e181d70a5d5a119360db5360dc Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Thu, 5 Mar 2020 22:39:42 +0100 Subject: Back to when it worked --- src/ft_warp_level.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/ft_warp_level.c') diff --git a/src/ft_warp_level.c b/src/ft_warp_level.c index cda89b0..808b346 100644 --- a/src/ft_warp_level.c +++ b/src/ft_warp_level.c @@ -67,20 +67,14 @@ static void if (isoldmus && !cl->mlist.ismusic) { pthread_cancel(cl->tid); - if (FT_OS == 2) - pthread_join(cl->tid, NULL); - else - pthread_kill(cl->tid, SIGTERM); + pthread_join(cl->tid, NULL); cl->isoldmus = 0; } else if (isoldmus && cl->mlist.ismusic && ft_strncmp(tmp_mup, cl->mlist.music_path, ft_strlen(tmp_mup) + 1)) { pthread_cancel(cl->tid); - if (FT_OS == 2) - pthread_join(cl->tid, NULL); - else - pthread_kill(cl->tid, SIGTERM); + pthread_join(cl->tid, NULL); pthread_create(&cl->tid, NULL, ft_music_thread, cl); } else if (isoldmus && cl->mlist.ismusic -- cgit v1.2.3