Fix AutoPlaylist race condition with AutoChange preset applications - avoid self-deactivation problem
This commit is contained in:
@@ -257,7 +257,7 @@ class AutoPlaylistUsermod : public Usermod {
|
|||||||
// after change_lockout. Better for smaller change_lockout values.
|
// after change_lockout. Better for smaller change_lockout values.
|
||||||
|
|
||||||
suspendPlaylist(); // suspend the playlist engine before changing to another preset
|
suspendPlaylist(); // suspend the playlist engine before changing to another preset
|
||||||
applyPreset(newpreset);
|
applyPreset(newpreset, CALL_MODE_NOTIFICATION);
|
||||||
|
|
||||||
#ifdef USERMOD_AUTO_PLAYLIST_DEBUG
|
#ifdef USERMOD_AUTO_PLAYLIST_DEBUG
|
||||||
USER_PRINTF("*** CHANGE distance = %4lu - change_interval was %5ldms - next change_threshold is %4u (%4u diff aprox)\n",(unsigned long)distance,change_interval,change_threshold,change_threshold_change);
|
USER_PRINTF("*** CHANGE distance = %4lu - change_interval was %5ldms - next change_threshold is %4u (%4u diff aprox)\n",(unsigned long)distance,change_interval,change_threshold,change_threshold_change);
|
||||||
|
|||||||
Reference in New Issue
Block a user