summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
0649781)
In case a file is being removed with "para_client rm" while in playlist mode,
the following assertion triggers:
mood.c:521: del_afs_statistics: Assertion `n' failed.
This happens because the file is contained in the score table but statistics are not enabled.
Fix it by ignoring events if cuurent_mood is NULL.
int moods_event_handler(enum afs_events event, __a_unused struct para_buffer *pb,
void *data)
{
int moods_event_handler(enum afs_events event, __a_unused struct para_buffer *pb,
void *data)
{
+ if (!current_mood)
+ return 0;
+ switch (event) {
/*
* The three blob events might change the set of admissible files,
* so we must reload the score list.
/*
* The three blob events might change the set of admissible files,
* so we must reload the score list.