add mobile restart remote device

This commit is contained in:
csf
2022-07-30 22:13:38 +08:00
parent e53119a01a
commit eec26e5c70
4 changed files with 56 additions and 7 deletions

View File

@@ -629,8 +629,9 @@ impl Handler {
}
fn restart_remote_device(&mut self) {
self.lc.write().unwrap().restarting_remote_device = true;
let msg = self.lc.write().unwrap().restart_remote_device();
let mut lc = self.lc.write().unwrap();
lc.restarting_remote_device = true;
let msg = lc.restart_remote_device();
self.send(Data::Message(msg));
}