From d7c4cab48e38448ff2747c8d360884ce47772ed2 Mon Sep 17 00:00:00 2001 From: Erik de Castro Lopo Date: Fri, 19 Feb 2016 17:58:31 +1100 Subject: [PATCH] simple_client.c: Exit on error --- simple_client.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/simple_client.c b/simple_client.c index 79ca4fa..e40356a 100644 --- a/simple_client.c +++ b/simple_client.c @@ -133,6 +133,7 @@ main (int argc, char *argv[]) if (jack_connect (client, ports[0], jack_port_name (input_port))) { fprintf (stderr, "cannot connect input ports\n"); + exit (1); } free (ports); @@ -160,5 +161,5 @@ main (int argc, char *argv[]) */ jack_client_close (client); - exit (0); + return 0; }