chore(download manager): Ensure that Downloadable is also send and sync

Signed-off-by: quexeky <git@quexeky.dev>
This commit is contained in:
quexeky
2024-12-31 12:20:42 +11:00
parent 0a2ac25b1c
commit 1a89135342
2 changed files with 1 additions and 2 deletions

View File

@ -331,7 +331,6 @@ impl DownloadManagerBuilder {
fn manage_completed_signal(&mut self, id: String) {
info!("Got signal 'Completed'");
if let Some(interface) = &self.current_download_agent {
// When if let chains are stabilised, combine these two statements
if interface.id == id {
info!("Popping consumed data");
let download_agent = self.remove_and_cleanup_front_download(&id);

View File

@ -4,7 +4,7 @@ use super::{
application_download_error::ApplicationDownloadError, download_thread_control_flag::DownloadThreadControl, progress_object::ProgressObject
};
pub trait Downloadable: Sync {
pub trait Downloadable: Send + Sync {
fn get_progress_object(&self) -> Arc<ProgressObject>;
fn version(&self) -> String;
fn id(&self) -> String;