pulse-server: don't ask data when corked

Don't ask for data when we are corked. Some clients like telegram
don't send data when corked.

See #2041
This commit is contained in:
Wim Taymans 2022-01-25 13:17:30 +01:00
parent 5c6e26fd0b
commit 3b14afe317

View file

@ -193,7 +193,7 @@ uint32_t stream_pop_missing(struct stream *stream)
missing -= stream->requested; missing -= stream->requested;
missing -= avail; missing -= avail;
if (missing <= 0) if (missing <= 0 || stream->corked)
return 0; return 0;
if (missing < stream->attr.minreq && !stream_prebuf_active(stream, avail)) if (missing < stream->attr.minreq && !stream_prebuf_active(stream, avail))