Skip to content

Fix pedalboard refetch / last.json restore race condition - #237

Merged
sastraxi merged 2 commits into
mainfrom
fix/restore-race-condition
Aug 21, 2026
Merged

Fix pedalboard refetch / last.json restore race condition#237
sastraxi merged 2 commits into
mainfrom
fix/restore-race-condition

Conversation

@sastraxi

@sastraxi sastraxi commented Aug 14, 2026

Copy link
Copy Markdown
Collaborator

Because last.json et al are part of the restore dump, there is a race condition where if the mtime is re-scanning during restore, pi-stomp can crash. This PR gates it on a _restoring flag -- this flag only ever transitions from False -> True because the last step of restore is to restart the service.

Also fixes a bug where the pedalboards list wasn't correctly being emptied when re-scanning MOD; this meant deleted pedalboards would still show up in the selector.

Bumps to v3.3.1.

@sastraxi
sastraxi requested a review from rreichenbach August 14, 2026 19:55

@rreichenbach rreichenbach left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. With OTA now, restoring from USB should be less common.

@sastraxi
sastraxi merged commit b301c52 into main Aug 21, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants