summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2011-12-13 17:55:58 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2011-12-13 17:55:58 +0100
commitfcbb51df846c13ec2d1d3be04003a4bfee3b5db5 (patch)
treef0c756e9037c947bec18893018dace3375e6b85c /src
parent99123efc74ce3e1dda63c098c2a5813aca763409 (diff)
downloadpa-sink-ctl-fcbb51df846c13ec2d1d3be04003a4bfee3b5db5.tar.gz
pa-sink-ctl-fcbb51df846c13ec2d1d3be04003a4bfee3b5db5.tar.bz2
pa-sink-ctl-fcbb51df846c13ec2d1d3be04003a4bfee3b5db5.zip
Quit mainloop in quit, so we quit even when we're disconnected
Diffstat (limited to 'src')
-rw-r--r--src/pa-sink-ctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pa-sink-ctl.c b/src/pa-sink-ctl.c
index e21b1a7..0c03cf4 100644
--- a/src/pa-sink-ctl.c
+++ b/src/pa-sink-ctl.c
@@ -289,7 +289,6 @@ context_state_callback(pa_context *c, gpointer userdata)
pa_operation_unref(ctx->op);
ctx->op = NULL;
interface_set_status(ctx, "connection terminated.");
- g_main_loop_quit(ctx->loop);
break;
default:
interface_set_status(ctx, "unknown state");
@@ -301,6 +300,7 @@ void
quit(struct context *ctx)
{
pa_context_disconnect(ctx->context);
+ g_main_loop_quit(ctx->loop);
}
/*