diff options
| author | WizardOfYendor1 <WizardOfYendor1@users.noreply.github.com> | 2026-02-28 11:21:53 -0500 |
|---|---|---|
| committer | WizardOfYendor1 <WizardOfYendor1@users.noreply.github.com> | 2026-03-27 20:11:26 -0400 |
| commit | 3a4dff8cc475e53691466dde2db9828b4d1b66aa (patch) | |
| tree | d2c182893452335d7a0574c427ffc410e2e61ea2 /Emby.Server.Implementations/HttpServer/WebSocketConnection.cs | |
| parent | e807575dc7b3d2eebbbe1a2bab197c07f84f6508 (diff) | |
Fix live stream consumer leak when PositionTicks is negative
When a stalled HLS client sends ReportPlaybackStopped with a negative
PositionTicks (e.g. HLS.js reporting position on buffer stall), the
ArgumentOutOfRangeException was thrown before GetSession was called,
causing CloseLiveStreamIfNeededAsync to never run. This left the
ILiveStream.ConsumerCount permanently incremented, permanently holding
a tuner open with no active viewer.
Fix by acquiring the session and performing live stream cleanup before
throwing the validation exception, so tuner resources are always freed
even when playback reporting fails with invalid position data.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'Emby.Server.Implementations/HttpServer/WebSocketConnection.cs')
0 files changed, 0 insertions, 0 deletions
