aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-04-24 17:03:02 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-04-24 17:03:02 +0200
commit4103f0de5325df1ba0da632996b0a055ab3f39be (patch)
tree378b5dad7f9509a93626a9a001e24047a29b35ed
parentRetry (diff)
download42-cub3d-4103f0de5325df1ba0da632996b0a055ab3f39be.tar.gz
42-cub3d-4103f0de5325df1ba0da632996b0a055ab3f39be.tar.bz2
42-cub3d-4103f0de5325df1ba0da632996b0a055ab3f39be.tar.xz
42-cub3d-4103f0de5325df1ba0da632996b0a055ab3f39be.tar.zst
42-cub3d-4103f0de5325df1ba0da632996b0a055ab3f39be.zip
Maybe that
-rw-r--r--src/ft_exit.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ft_exit.c b/src/ft_exit.c
index 988a0cf..a1813d5 100644
--- a/src/ft_exit.c
+++ b/src/ft_exit.c
@@ -49,6 +49,7 @@ static void
if (FT_OS == 2)
{
pthread_cancel(clist->sfx[i].tid);
+ pthread_join(clist->sfx[i].tid, NULL);
}
else
system(FT_SND_TERM_CMD);
@@ -60,6 +61,7 @@ static void
if (FT_OS == 2)
{
pthread_cancel(clist->sfx[i].tid);
+ pthread_join(clist->sfx[i].tid, NULL);
}
else
system(FT_SND_TERM_CMD);