refact, flutter sessions lock
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
parent
b02f169764
commit
06987c4ca9
9 changed files with 188 additions and 170 deletions
|
|
@ -816,7 +816,7 @@ impl<T: InvokeUiSession> Remote<T> {
|
|||
job: &fs::TransferJob,
|
||||
elapsed: i32,
|
||||
last_update_jobs_status: &mut (Instant, HashMap<i32, u64>),
|
||||
handler: &mut Session<T>,
|
||||
handler: &Session<T>,
|
||||
) {
|
||||
if elapsed <= 0 {
|
||||
return;
|
||||
|
|
@ -843,7 +843,7 @@ impl<T: InvokeUiSession> Remote<T> {
|
|||
job,
|
||||
elapsed,
|
||||
&mut self.last_update_jobs_status,
|
||||
&mut self.handler,
|
||||
&self.handler,
|
||||
);
|
||||
}
|
||||
for job in self.write_jobs.iter() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue