Daemonize the musicbrainz thread #217

Merged
wojtek merged 15 commits from 188---add-option-for-manual-input-during-fetch into main 2024-09-21 23:03:47 +02:00
2 changed files with 6 additions and 2 deletions
Showing only changes of commit b4d3eadd63 - Show all commits

View File

@ -107,7 +107,6 @@ impl AppMachine<FetchState> {
}
}
None => {
let mut queue = VecDeque::new();
queue.push_back(ApiParams::search(SearchParams::artist(
SearchArtistParams::new(artist.meta.clone()),
)));

View File

@ -228,7 +228,12 @@ impl JobInstance {
) -> Option<()> {
self.call_queue
.pop_front()
.map(|api_params| self.execute_call(api, events, api_params))
.map(|api_params| self.execute_call(api, events, api_params));
if !self.call_queue.is_empty() {
Some(())
} else {
None
}
}
fn execute_call(