Repository navigation
Commit 53d9633
committed
fix: fail loudly on an unhandled hub lifetime result
AddLiveControlConnection returns Union3<HubLifetime, NotFound, Busy> and all
three are handled, but a switch statement is not exhaustiveness-checked. If the
union ever widens, the unhandled case would fall through to reporting
LiveControlOutcome.Connected and returning Success with a null _hubLifetime,
surfacing only later as "Hub lifetime is null but was accessed". Matches the
UnreachableException default already used by the switch expressions below.1 parent ac0d3ef commit 53d9633
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
241 | 245 | | |
242 | 246 | | |
243 | 247 | | |
| |||
0 commit comments