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 44fe597..776d74b 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);
 }