diff options
author | Rudy Bousset <rbousset@z1r3p1.le-101.fr> | 2020-03-05 19:45:26 +0100 |
---|---|---|
committer | Rudy Bousset <rbousset@z1r3p1.le-101.fr> | 2020-03-05 19:45:26 +0100 |
commit | 528526dece384c9078d888a904c3fe96f1b0845c (patch) | |
tree | 059bf5332cd463578bbedf1aaa22a06d2b4733eb /src/ft_warp_level.c | |
parent | DARK (diff) | |
download | 42-cub3d-528526dece384c9078d888a904c3fe96f1b0845c.tar.gz 42-cub3d-528526dece384c9078d888a904c3fe96f1b0845c.tar.bz2 42-cub3d-528526dece384c9078d888a904c3fe96f1b0845c.tar.xz 42-cub3d-528526dece384c9078d888a904c3fe96f1b0845c.tar.zst 42-cub3d-528526dece384c9078d888a904c3fe96f1b0845c.zip |
Baleck
Diffstat (limited to '')
-rw-r--r-- | src/ft_warp_level.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/ft_warp_level.c b/src/ft_warp_level.c index 808b346..cda89b0 100644 --- a/src/ft_warp_level.c +++ b/src/ft_warp_level.c @@ -67,14 +67,20 @@ static void if (isoldmus && !cl->mlist.ismusic) { pthread_cancel(cl->tid); - pthread_join(cl->tid, NULL); + if (FT_OS == 2) + pthread_join(cl->tid, NULL); + else + pthread_kill(cl->tid, SIGTERM); 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); - pthread_join(cl->tid, NULL); + if (FT_OS == 2) + pthread_join(cl->tid, NULL); + else + pthread_kill(cl->tid, SIGTERM); pthread_create(&cl->tid, NULL, ft_music_thread, cl); } else if (isoldmus && cl->mlist.ismusic |