Address requested changes by review

This commit is contained in:
Ionut Andrei Oanca
2020-10-22 15:51:58 +02:00
parent 1cabe82b59
commit 0c735a0395
7 changed files with 54 additions and 55 deletions

View File

@@ -25,7 +25,7 @@ namespace MediaBrowser.Controller.SyncPlay
/// <summary>
/// Class PlayQueueManager.
/// </summary>
public class PlayQueueManager : IDisposable
public class PlayQueueManager
{
/// <summary>
/// Gets or sets the playing item index.
@@ -83,27 +83,6 @@ namespace MediaBrowser.Controller.SyncPlay
Reset();
}
/// <inheritdoc />
public void Dispose()
{
Dispose(true);
GC.SuppressFinalize(this);
}
/// <summary>
/// Releases unmanaged and optionally managed resources.
/// </summary>
/// <param name="disposing"><c>true</c> to release both managed and unmanaged resources; <c>false</c> to release only unmanaged resources.</param>
protected virtual void Dispose(bool disposing)
{
if (_disposed)
{
return;
}
_disposed = true;
}
/// <summary>
/// Gets the next available identifier.
/// </summary>
@@ -284,7 +263,7 @@ namespace MediaBrowser.Controller.SyncPlay
ShuffledPlaylist.Add(playingItem);
}
PlayingItemIndex = 0;
}
}
else
{
PlayingItemIndex = NoPlayingItemIndex;