From 05ad2085ab6ce4ffb280b21ce3f321b2bd75aa9e Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Tue, 17 Mar 2020 17:15:32 +0100 Subject: fps counter is bav --- src/ft_sfx_trap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/ft_sfx_trap.c') diff --git a/src/ft_sfx_trap.c b/src/ft_sfx_trap.c index d55dd57..a395450 100644 --- a/src/ft_sfx_trap.c +++ b/src/ft_sfx_trap.c @@ -28,7 +28,8 @@ void while (1) { pthread_mutex_lock(&sfx->trap_mutex); - system(sfx->trap); + if (system(sfx->trap)) + pthread_exit(NULL); } return (NULL); } -- cgit v1.2.3