Bug Fix: Safeguard play count updates
Play Count cannot be updated for tracks which have been deleted before the update was added to them. This was another cause of a rare crash. Signed-off-by: Christopher Snowhill <kode54@gmail.com>
This commit is contained in:
parent
0d289e47ab
commit
931da40b4d
1 changed files with 1 additions and 1 deletions
|
@ -251,7 +251,7 @@ static void *playlistControllerContext = &playlistControllerContext;
|
|||
}
|
||||
|
||||
- (void)updatePlayCountForTrack:(PlaylistEntry *)pe {
|
||||
if(pe.countAdded) return;
|
||||
if(!pe || pe.deLeted || pe.countAdded) return;
|
||||
pe.countAdded = YES;
|
||||
|
||||
__block PlayCount *pc = pe.playCountItem;
|
||||
|
|
Loading…
Reference in a new issue