mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-04 18:09:12 +03:00
Consumer count off by one when closing a browser tab with a livestream and the transcoding kill timer is triggered #6829
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @timminator on GitHub (Mar 15, 2025).
Description of the bug
When closing a browser tab with a livestream that is transcoded or remuxed the consumer count is reduced by 2 instead of one.
This brakes the stream of a second person that is also watching because the stream is closed when the consumer count reaches zero.
What I found out:
When more than two people are watching the stream will always brake for the last person watching aswell.
The issue is very closely related to #13219.
Reproduction steps
It is not consistently reproducable because normally PlaybackStopped is reported.
What is the current bug behavior?
The stream closes on an unrelated device that did not send a quit signal.
What is the expected correct behavior?
The stream should not stop on an unrelated device in this situation.
Jellyfin Server version
10.10.0+
Specify commit id
No response
Specify unstable release number
No response
Specify version number
No response
Specify the build version
10.10.3
Environment
Jellyfin logs
FFmpeg logs
Client / Browser logs
No response
Relevant screenshots or videos
No response
Additional information
No response