summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/protocol-simple.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pulsecore/protocol-simple.c')
-rw-r--r--src/pulsecore/protocol-simple.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pulsecore/protocol-simple.c b/src/pulsecore/protocol-simple.c
index fd304c67..c423487a 100644
--- a/src/pulsecore/protocol-simple.c
+++ b/src/pulsecore/protocol-simple.c
@@ -123,7 +123,8 @@ static void connection_free(pa_object *o) {
static void connection_drop(connection *c) {
pa_assert(c);
- pa_assert_se(pa_idxset_remove_by_data(c->protocol->connections, c, NULL) == c);
+ if (!pa_idxset_remove_by_data(c->protocol->connections, c, NULL))
+ return;
if (c->sink_input) {
pa_sink_input_disconnect(c->sink_input);