diff options
| author | timminator <150205162+timminator@users.noreply.github.com> | 2025-03-28 00:59:08 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-27 17:59:08 -0600 |
| commit | 181a37a8cd512a46dfc5af55c43ef1468d206d75 (patch) | |
| tree | ee3c5c9f04eee538155341ec7ef0119ed3013fa7 /MediaBrowser.Controller | |
| parent | ae4b35da462ad569bdc6f10df1cc8095cb1466e5 (diff) | |
Fix consumer count off by one when closing a browser tab with a livestream that is transcoding (#13220)
Rework Implementation
Fix review issues
Add missing nullorempty check
Fix closely related #13721
Diffstat (limited to 'MediaBrowser.Controller')
| -rw-r--r-- | MediaBrowser.Controller/Session/ISessionManager.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/Session/ISessionManager.cs b/MediaBrowser.Controller/Session/ISessionManager.cs index 21131e6b5..47bcfdb6e 100644 --- a/MediaBrowser.Controller/Session/ISessionManager.cs +++ b/MediaBrowser.Controller/Session/ISessionManager.cs @@ -342,5 +342,13 @@ namespace MediaBrowser.Controller.Session Task RevokeUserTokens(Guid userId, string currentAccessToken); Task CloseIfNeededAsync(SessionInfo session); + + /// <summary> + /// Used to close the livestream if needed. + /// </summary> + /// <param name="liveStreamId">The livestream id.</param> + /// <param name="sessionIdOrPlaySessionId">The session id or playsession id.</param> + /// <returns>Task.</returns> + Task CloseLiveStreamIfNeededAsync(string liveStreamId, string sessionIdOrPlaySessionId); } } |
