From e0c410ee60c715c3f69b306fd5266b900d2274c1 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Fri, 17 Apr 2020 00:53:41 +0200 Subject: changes --- src/ft_exit.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/ft_exit.c') diff --git a/src/ft_exit.c b/src/ft_exit.c index 4f2494b..ea5cd2a 100644 --- a/src/ft_exit.c +++ b/src/ft_exit.c @@ -51,8 +51,8 @@ static void pthread_cancel(clist->mtid); pthread_join(clist->mtid, NULL); } - else - system(FT_SND_TERM_CMD); + else if (system(FT_SND_TERM_CMD)) + return ; } i = -1; while (++i < FT_TOTAL_SFX) @@ -63,8 +63,8 @@ static void pthread_cancel(clist->sfx[i].tid); pthread_join(clist->sfx[i].tid, NULL); } - else - system(FT_SND_TERM_CMD); + else if (system(FT_SND_TERM_CMD)) + return ; } } -- cgit v1.2.3