mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
remove not save peer config when version is zero
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
@@ -1151,10 +1151,6 @@ impl LoginConfigHandler {
|
||||
///
|
||||
/// * `config` - [`PeerConfig`] to save.
|
||||
pub fn save_config(&mut self, config: PeerConfig) {
|
||||
if self.version == 0 {
|
||||
log::info!("skip saving peer config {}", self.id);
|
||||
return;
|
||||
}
|
||||
config.store(&self.id);
|
||||
self.config = config;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user