From fcbb51df846c13ec2d1d3be04003a4bfee3b5db5 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Tue, 13 Dec 2011 17:55:58 +0100 Subject: Quit mainloop in quit, so we quit even when we're disconnected --- src/pa-sink-ctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } /* -- cgit