Skip to content

Fix stale session settlement retry logic - #186

Merged
RykoTheDev merged 1 commit into
RykoTheDev:mainfrom
tuberkulez-takt:fix/settle-stale-sessions-retry
Sep 22, 2026
Merged

RykoTheDev merged 1 commit into
RykoTheDev:mainfrom
tuberkulez-takt:fix/settle-stale-sessions-retry

Conversation

@tuberkulez-takt

Copy link
Copy Markdown
Contributor

Fix settle stale sessions getting stuck after a failed initialization attempt due to OnceLock being permanently initialized.

Replace the OnceLock guard with retryable state tracking using Mutex to Option to Instant and an AtomicBool to:

allow retrying after find_running_godot_processes() fails; prevent concurrent settlement attempts;
throttle successful settlement checks to once per minute; update the last successful settlement timestamp only after success.

Add a test covering the Err Ok scenario to verify that a subsequent call successfully settles the stale session

P.s
sorry for my english is not my first language

Fix settle stale sessions getting stuck after a failed initialization attempt due to OnceLock being permanently initialized.

Replace the OnceLock guard with retryable state tracking using Mutex to Option to Instant and an AtomicBool to:

allow retrying after find_running_godot_processes() fails;
prevent concurrent settlement attempts;
throttle successful settlement checks to once per minute;
update the last successful settlement timestamp only after success.

Add a test covering the Err Ok scenario to verify that a subsequent call successfully settles the stale session

P.s
sorry for my english is not my first language
@RykoTheDev
RykoTheDev merged commit 1809d7e into RykoTheDev:main Sep 22, 2026
3 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