Commit 2bbea1e
committed
fix: replace panicking unwrap with error propagation in SCK enumerate
rx.recv().unwrap() panics when ScreenCaptureKit's async callback
never fires (race condition, permissions revoked mid-enumeration).
tx.send().unwrap() panics if the receiver was already dropped.
Now returns DevicesError::BackendSpecific instead of crashing the
entire process. Callers already handle Result — this just makes
the error path non-fatal.1 parent c3eaee9 commit 2bbea1e
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
29 | 33 | | |
30 | 34 | | |
31 | 35 | | |
| |||
0 commit comments