mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-11-04 16:35:19 +00:00
prevent frequent loginctl calls
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
This commit is contained in:
1 parent
58bbc33aa6
commit
0931341a7f
2 files changed
+11
-4
No files matched your search
@@ -1073,13 +1073,11 @@ mod desktop {
|
||||
}
|
||||
|
||||
pub fn refresh(&mut self) {
|
||||
let seat0_values = get_values_of_seat0(&[0, 1, 2]);
|
||||
if !self.sid.is_empty() && is_active(&self.sid) {
|
||||
if self.sid == seat0_values[0] {
|
||||
if !self.sid.is_empty() && is_active_and_seat0(&self.sid) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
let seat0_values = get_values_of_seat0(&[0, 1, 2]);
|
||||
if seat0_values[0].is_empty() {
|
||||
*self = Self::default();
|
||||
self.is_rustdesk_subprocess = false;
|
||||
|
||||
Reference in new issue
Block a user