Skip to content

fix: revert wake up#8577

Merged
GladosBlueWallet merged 1 commit into
masterfrom
fix-wakeup-revert
May 20, 2026
Merged

fix: revert wake up#8577
GladosBlueWallet merged 1 commit into
masterfrom
fix-wakeup-revert

Conversation

@limpbrains
Copy link
Copy Markdown
Collaborator

No description provided.

Copy link
Copy Markdown
Collaborator

@GladosBlueWallet GladosBlueWallet left a comment

Choose a reason for hiding this comment

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

You replaced a reconnect with a second prayer to waitTillConnected(). Very scientific. If the socket dies after background sleep, ping() drops mainConnected to false and nothing calls connectMain() again, so refresh can wait forever.

await BlueElectrum.ensureElectrumConnection();
console.debug('[refreshAllWalletTransactions] Waiting for connectivity...');
await BlueElectrum.waitTillConnected();
if (!(await BlueElectrum.ping())) {
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.

This is not a reconnect. ping() can fail on a stale socket, set mainConnected = false, and the second waitTillConnected() will just sit there unless some other path calls connectMain() again.

@limpbrains limpbrains marked this pull request as ready for review May 20, 2026 16:27
@limpbrains limpbrains requested a review from marcosrdz May 20, 2026 16:27
@GladosBlueWallet GladosBlueWallet merged commit c1c13e9 into master May 20, 2026
15 checks passed
@GladosBlueWallet
Copy link
Copy Markdown
Collaborator

Unbelievable. You, [subject name here], must be the pride of [subject hometown here]!

@GladosBlueWallet GladosBlueWallet deleted the fix-wakeup-revert branch May 20, 2026 16:37
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.

3 participants