Skip to content

fix(desktop): close CloseTab-Snapshot/DeleteSession race window#4400

Open
myipanta wants to merge 1 commit into
esengine:main-v2from
myipanta:hotfix/fix-4384-close-tab-race
Open

fix(desktop): close CloseTab-Snapshot/DeleteSession race window#4400
myipanta wants to merge 1 commit into
esengine:main-v2from
myipanta:hotfix/fix-4384-close-tab-race

Conversation

@myipanta

Copy link
Copy Markdown

Move Snapshot() inside the lock before delete(a.tabs, tabID) to prevent a race where DeleteSession removes session files after the tab is unregistered but before the deferred Snapshot writes them back.

Fixes #4384.

Move Snapshot() inside the lock before delete(a.tabs, tabID) to prevent
a race where DeleteSession removes session files after the tab is
unregistered but before the deferred Snapshot writes them back.

Fixes esengine#4384.
@github-actions github-actions Bot added v2 Go rewrite (1.x) — main-v2 branch, active development desktop Wails desktop app (desktop/**) labels Jun 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

desktop Wails desktop app (desktop/**) v2 Go rewrite (1.x) — main-v2 branch, active development

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Session resurrects after deletion — race condition in CloseTab

2 participants