Skip to content

fix(store): apply_pending_auto_save can deadlock - #3572

Merged
Legend-Master merged 2 commits into
tauri-apps:v2from
Legend-Master:store-pending-auto-save-deadlock
Sep 16, 2026
Merged

Legend-Master merged 2 commits into
tauri-apps:v2from
Legend-Master:store-pending-auto-save-deadlock

Conversation

@Legend-Master

Copy link
Copy Markdown
Contributor

Fix #3570

@Legend-Master
Legend-Master requested a review from a team as a code owner September 8, 2026 10:10
@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Package Changes Through 831c052

There are 4 changes which include http with patch, http-js with patch, store with patch, store-js with patch

Planned Package Versions

The following package releases are the planned based on the context of changes in this pull request.

package current next
api-example 2.0.47 2.0.48
api-example-js 2.0.43 2.0.44
http 2.6.0 2.6.1
http-js 2.6.0 2.6.1
store 2.4.4 2.4.5
store-js 2.4.4 2.4.5

Add another change file through the GitHub UI by following this link.


Read about change files or the docs at github.com/jbolda/covector


fn apply_pending_auto_save(&self) {
// Cancel and save if auto save is pending
if let Some(sender) = self.auto_save_debounce_sender.lock().unwrap().take() {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The lifetime is different here, the lock was not released in the if block

@Legend-Master

Copy link
Copy Markdown
Contributor Author

@amrbashir Could you take a review on this, don't want to drag Fabian-Lars out of vacation, should be just a one line change.

@Legend-Master
Legend-Master requested review from amrbashir and removed request for FabianLars September 10, 2026 02:42
@Legend-Master
Legend-Master merged commit c050e07 into tauri-apps:v2 Sep 16, 2026
16 checks passed
@Legend-Master
Legend-Master deleted the store-pending-auto-save-deadlock branch September 16, 2026 02:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[store] app hangs on setup

2 participants