mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-31 01:35:50 +02:00
added session disposal
This commit is contained in:
parent
d494944767
commit
8b534cc34a
|
@ -76,6 +76,13 @@ namespace MediaBrowser.Controller.Session
|
||||||
/// <exception cref="System.ArgumentNullException"></exception>
|
/// <exception cref="System.ArgumentNullException"></exception>
|
||||||
Task OnPlaybackStopped(PlaybackStopInfo info);
|
Task OnPlaybackStopped(PlaybackStopInfo info);
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Reports the session ended.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sessionId">The session identifier.</param>
|
||||||
|
/// <returns>Task.</returns>
|
||||||
|
Task ReportSessionEnded(Guid sessionId);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Sends the system command.
|
/// Sends the system command.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -375,7 +375,7 @@ namespace MediaBrowser.Dlna.PlayTo
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
var hasTrack = await GetPositionInfo().ConfigureAwait(false);
|
var hasTrack = await GetPositionInfo().ConfigureAwait(false);
|
||||||
|
|
||||||
// TODO: Why make these requests if hasTrack==false?
|
// TODO: Why make these requests if hasTrack==false?
|
||||||
if (_count > 5)
|
if (_count > 5)
|
||||||
{
|
{
|
||||||
|
|
|
@ -17,7 +17,7 @@ using Timer = System.Timers.Timer;
|
||||||
|
|
||||||
namespace MediaBrowser.Dlna.PlayTo
|
namespace MediaBrowser.Dlna.PlayTo
|
||||||
{
|
{
|
||||||
public class PlayToController : ISessionController
|
public class PlayToController : ISessionController, IDisposable
|
||||||
{
|
{
|
||||||
private Device _device;
|
private Device _device;
|
||||||
private BaseItem _currentItem = null;
|
private BaseItem _currentItem = null;
|
||||||
|
|
Loading…
Reference in a new issue