simple-protocol: don't hit an assert when we call connection_unlink() early

This commit is contained in:
Lennart Poettering 2009-04-29 04:13:07 +02:00
parent 0b2d96d6c0
commit 4cb6ea2d96

View 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);
}