]> code.delx.au - pulseaudio/commitdiff
simple-protocol: don't hit an assert when we call connection_unlink() early
authorLennart Poettering <lennart@poettering.net>
Wed, 29 Apr 2009 02:13:07 +0000 (04:13 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 29 Apr 2009 02:13:07 +0000 (04:13 +0200)
src/pulsecore/protocol-simple.c

index 44fe5973d07cd7b9536a0f3112ce0a989a5d6c9f..776d74b632a5ce84ea16f0858fc7ad217f8a9261 100644 (file)
@@ -130,7 +130,7 @@ static void connection_unlink(connection *c) {
         c->io = NULL;
     }
 
-    pa_assert_se(pa_idxset_remove_by_data(c->protocol->connections, c, NULL) == c);
+    pa_idxset_remove_by_data(c->protocol->connections, c, NULL);
     c->protocol = NULL;
     connection_unref(c);
 }