mirror of
https://github.com/rustdesk/hbb_common.git
synced 2026-11-27 00:04:34 +00:00
Serialize peer deletion with credential writes
Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
1 parent
f15eb3d40d
commit
3ee3afd438
1 file changed
+1
@@ -1868,6 +1868,7 @@ impl PeerConfig {
|
||||
}
|
||||
|
||||
pub fn remove(id: &str) {
|
||||
let _lock = PEER_CONFIG_WRITE_LOCK.lock().unwrap();
|
||||
fs::remove_file(Self::path(id)).ok();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user