Fixed wrong comparing of track objects

This commit is contained in:
Jonas Dellinger 2016-08-28 22:35:47 +02:00
parent af7dcf840f
commit ce376a3513

View File

@ -98,7 +98,7 @@ namespace SpotifyAPI.Local
} }
if (newStatusResponse.Track != null && _eventStatusResponse.Track != null) if (newStatusResponse.Track != null && _eventStatusResponse.Track != null)
{ {
if (newStatusResponse.Track.TrackResource?.Name != _eventStatusResponse.Track.TrackResource?.Name) if (newStatusResponse.Track.TrackResource?.Uri != _eventStatusResponse.Track.TrackResource?.Uri)
{ {
OnTrackChange?.Invoke(this, new TrackChangeEventArgs() OnTrackChange?.Invoke(this, new TrackChangeEventArgs()
{ {