diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2011-12-13 17:19:30 +0100 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2011-12-13 17:28:15 +0100 |
commit | 6130c10a598275f72cf124a75fdb2529987cee8b (patch) | |
tree | 7115d50dd89641f2d8a985c816c4cd8708a263ac /src | |
parent | b5f6acbf43104734df8245bd6b619556fe8f43b1 (diff) | |
download | pa-sink-ctl-6130c10a598275f72cf124a75fdb2529987cee8b.tar.gz pa-sink-ctl-6130c10a598275f72cf124a75fdb2529987cee8b.tar.bz2 pa-sink-ctl-6130c10a598275f72cf124a75fdb2529987cee8b.zip |
Quit when initial connection fails
Diffstat (limited to 'src')
-rw-r--r-- | src/pa-sink-ctl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pa-sink-ctl.c b/src/pa-sink-ctl.c index 5c2f7f5..69f4fcc 100644 --- a/src/pa-sink-ctl.c +++ b/src/pa-sink-ctl.c @@ -355,6 +355,7 @@ main(int argc, char** argv) PA_CONTEXT_NOAUTOSPAWN, NULL)) { interface_clear(ctx); g_printerr("error: pa_context_connect() failed.\n"); + return -1; } g_main_loop_run(ctx->loop); |