Skip to content

fix(sell): handle sell-balance stream errors instead of silently stopping#676

Open
joshuakrueger-dfx wants to merge 1 commit into
RealUnitCH:developfrom
joshuakrueger-dfx:joshua/fix-657-p4s6-sellbalance-onerror
Open

fix(sell): handle sell-balance stream errors instead of silently stopping#676
joshuakrueger-dfx wants to merge 1 commit into
RealUnitCH:developfrom
joshuakrueger-dfx:joshua/fix-657-p4s6-sellbalance-onerror

Conversation

@joshuakrueger-dfx
Copy link
Copy Markdown
Collaborator

Addresses Issue #657 — Part 4, finding S6.

SellBalanceCubit used watchBalance(...).listen(emit) with no onError — a stream error escaped as an unhandled async error and the sell balance silently stopped. Adds an onError handler (logs; cancelOnError false keeps the subscription alive). New RED→GREEN regression (proven), suite 5/5 green, analyze clean.

🤖 Fleet-confirmed defect (Design-Skeptic PASS), hand-finished by operator. Ref #657.

…ping

SellBalanceCubit subscribed with watchBalance(...).listen(emit) and no onError,
so a stream error escaped as an unhandled async error and the sell balance
silently stopped updating. Add an onError handler that logs the failure; with
cancelOnError defaulting to false the subscription stays alive so later
balances still update.

Regression: test/screens/sell/cubits/sell_balance_cubit_test.dart

Issue RealUnitCH#657 — Part 4, finding S6.
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.

1 participant