mirror of
https://github.com/rustdesk/rustdesk
synced 2026-05-23 08:58:52 +00:00
`peers.map((p) async {})` is not sync and peers are loaded before deletion.
```
let mut peers = config::LanPeers::load().peers;
peers.retain(|x| x.id != id);
```
Signed-off-by: 21pages <sunboeasy@gmail.com>
|
||
|---|---|---|
| .. | ||
| common | ||
| desktop | ||
| mobile | ||
| models | ||
| native | ||
| plugin | ||
| utils | ||
| web | ||
| common.dart | ||
| consts.dart | ||
| main.dart | ||