Skip to content

Commit 49a1399

Browse files
Copilotnetmindz
andcommitted
Fix AutoPlaylist race condition: use CALL_MODE_NOTIFICATION for AutoChange presets
Co-authored-by: netmindz <442066+netmindz@users.noreply.github.com>
1 parent 2a01b58 commit 49a1399

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

usermods/usermod_v2_auto_playlist/usermod_v2_auto_playlist.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ class AutoPlaylistUsermod : public Usermod {
257257
// after change_lockout. Better for smaller change_lockout values.
258258

259259
suspendPlaylist(); // suspend the playlist engine before changing to another preset
260-
applyPreset(newpreset);
260+
applyPreset(newpreset, CALL_MODE_NOTIFICATION);
261261

262262
#ifdef USERMOD_AUTO_PLAYLIST_DEBUG
263263
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);

0 commit comments

Comments
 (0)