mirror of
https://github.com/Drop-OSS/drop-app.git
synced 2025-11-20 11:41:20 +10:00
Compare commits
2 Commits
f733fbba65
...
e8b9ec020d
| Author | SHA1 | Date | |
|---|---|---|---|
| e8b9ec020d | |||
| cc417d6d69 |
@ -453,23 +453,9 @@ impl GameDownloadAgent {
|
|||||||
|
|
||||||
let sender = self.sender.clone();
|
let sender = self.sender.clone();
|
||||||
|
|
||||||
let download_context = match download_contexts
|
let download_context = download_contexts
|
||||||
.get(&bucket.version)
|
.get(&bucket.version)
|
||||||
.ok_or(RemoteAccessError::CorruptedState)
|
.unwrap_or_else(|| panic!("Could not get bucket version {}. Corrupted state.", bucket.version));
|
||||||
{
|
|
||||||
Ok(context) => context,
|
|
||||||
Err(e) => {
|
|
||||||
error!("Could not get download context with error {e}");
|
|
||||||
|
|
||||||
send!(
|
|
||||||
sender,
|
|
||||||
DownloadManagerSignal::Error(ApplicationDownloadError::DownloadError(
|
|
||||||
e
|
|
||||||
))
|
|
||||||
);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
scope.spawn(move |_| {
|
scope.spawn(move |_| {
|
||||||
// 3 attempts
|
// 3 attempts
|
||||||
@ -707,7 +693,7 @@ impl Downloadable for GameDownloadAgent {
|
|||||||
Ok(_) => {}
|
Ok(_) => {}
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
error!("could not mark game as complete: {e}");
|
error!("could not mark game as complete: {e}");
|
||||||
self.on_error(app_handle, &ApplicationDownloadError::DownloadError(e));
|
send!(self.sender, DownloadManagerSignal::Error(ApplicationDownloadError::DownloadError(e)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user