pulse-server: remove pending_streams list

We can simply use the pending flag and merge the handling of the new
stream with the stream move logic.
This commit is contained in:
Wim Taymans 2023-09-14 12:08:48 +02:00
parent 35cca08d2b
commit 846e732458
5 changed files with 23 additions and 30 deletions

View file

@ -103,9 +103,6 @@ void stream_free(struct stream *stream)
pw_log_debug("client %p: stream %p channel:%d", client, stream, stream->channel);
if (stream->pending)
spa_list_remove(&stream->link);
if (stream->drain_tag)
reply_error(client, -1, stream->drain_tag, -ENOENT);