Commit c80c982
committed
fix(discovery): stop scan immediately without blocking on radio reconnect
- Moves into a detached CoroutineScope within .
- Prevents the UI from being stuck in 'Restoring home preset...' (and making the user think the scan is still in progress) for up to 60 seconds while the radio reboots and reconnects over BLE.
- Removes state manipulation from to prevent it from overwriting the state when stopped manually.1 parent 69ca714 commit c80c982
1 file changed
Lines changed: 8 additions & 4 deletions
File tree
- feature/discovery/src/commonMain/kotlin/org/meshtastic/feature/discovery
Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
183 | 184 | | |
184 | 185 | | |
185 | 186 | | |
186 | | - | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
187 | 194 | | |
188 | | - | |
189 | | - | |
190 | 195 | | |
191 | 196 | | |
192 | 197 | | |
| |||
505 | 510 | | |
506 | 511 | | |
507 | 512 | | |
508 | | - | |
509 | 513 | | |
510 | 514 | | |
511 | 515 | | |
| |||
0 commit comments