opt: name, imports

This commit is contained in:
Kingtous
2022-04-29 16:47:45 +08:00
parent 265e3c760e
commit 02f214e39a
6 changed files with 11 additions and 24 deletions

View File

@@ -768,6 +768,7 @@ impl Handler {
}
fn reconnect(&mut self) {
println!("reconnecting");
let cloned = self.clone();
let mut lock = self.write().unwrap();
lock.thread.take().map(|t| t.join());
@@ -1559,7 +1560,6 @@ impl Remote {
to,
job.files().len()
);
let config = self.handler.lc.read().unwrap().version;
let m = make_fd(job.id(), job.files(), true);
self.handler.call("updateFolderFiles", &make_args!(m));
let files = job.files().clone();