Skip to content

Commit 8342679

Browse files
authored
Merge pull request #264 from MoonModules/copilot/fix-256 (fixes #256)
Fix AutoPlaylist race condition with AutoChange preset applications - avoid self-deactivation problem
2 parents 4e2605b + 49a1399 commit 8342679

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)