Commit 86c7c51
authored
fix(cable): return ConnectionFailed for both Terminated paths (#222)
## Summary
`wait_for_connection` returned `ConnectionLost` on an entry-time
`Terminated` but `ConnectionFailed` on a transition-time `Terminated`.
The caller can't observe which path it took, so the two variants are an
accidental asymmetry that makes downstream `match`es fragile. Both paths
now return `ConnectionFailed`.
## Test plan
- [ ] `cargo build -p libwebauthn`
- [ ] `cargo test -p libwebauthn`1 parent 8c71a77 commit 86c7c51
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
59 | 63 | | |
60 | | - | |
| 64 | + | |
61 | 65 | | |
62 | 66 | | |
63 | 67 | | |
| |||
0 commit comments