Skip to content

fix: end a stalled wear spark send with its connection #2184

Backlog

Description

@jvsena42

Part of #2105.
Source: review, #2182

On the watch, PaymentsRepo times out a Spark sendPayment call after 60 s and reports the outcome as unknown, but the call itself stays alive inside the SDK. Until it returns, every new send is refused as busy (a retry of the same request shows Pending), also after a disconnect, a wipe and a fresh restore, and every disconnect waits its full 10 s grace.

It fails closed: nothing pays twice. It needs an SDK call that never returns.

Proposal

  • Tie the running-call count and the stalled call to the SDK connection, so a disconnect or wipe ends them.

Done when

  • Unit tests cover a stalled call followed by a disconnect, a wipe and a restore, with the new wallet able to send.

Found in review round 3 of the Wear OS payments PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions