added session disposal

This commit is contained in:
Luke Pulverenti 2014-03-09 22:33:19 -04:00
parent d494944767
commit 8b534cc34a
3 changed files with 9 additions and 2 deletions

View file

@ -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>

View file

@ -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)
{ {

View file

@ -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;