Commit 1d2382b
committed
fix(cable): return ConnectionFailed for both Terminated paths
wait_for_connection returned ConnectionLost when the channel was already
Terminated on entry, but ConnectionFailed when it became Terminated during
the changed() await. The caller can't observe which path it took, so the
two variants are an accidental asymmetry that makes downstream matches
fragile. Both paths now return ConnectionFailed.1 parent 8c71a77 commit 1d2382b
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