Skip to content

Commit e1e8729

Browse files
erikdfalkTX
authored andcommitted
simple_client.c: Exit on error
1 parent 7eec0a8 commit e1e8729

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

example-clients/latent_client.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ main (int argc, char *argv[])
180180

181181
if (jack_connect (client, ports[0], jack_port_name (input_port))) {
182182
fprintf (stderr, "cannot connect input ports\n");
183+
exit (1);
183184
}
184185

185186
free (ports);
@@ -211,6 +212,6 @@ main (int argc, char *argv[])
211212
*/
212213

213214
jack_client_close (client);
214-
exit (0);
215+
return 0;
215216
}
216217

0 commit comments

Comments
 (0)