Skip to content

Commit 1835e9e

Browse files
committed
Merge pull request #264 from MoonModules/copilot/fix-256 (fixes #256)
Fix AutoPlaylist race condition with AutoChange preset applications - avoid self-deactivation problem
1 parent a9f69d3 commit 1835e9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)