diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-03-16 02:03:21 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-03-16 22:45:19 +0100 |
| commit | 145aa603f2a8ee4a658047faa29892136bb78417 (patch) | |
| tree | 0440131939832fa0d46b3cfd4b0b79565185ab85 | |
| parent | a32ac8ffe3f061cee5396364cf73ce565c130f3a (diff) | |
Allow re-start of cancelled subtitle analysis jobs.
| -rw-r--r-- | src/lib/job_manager.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/job_manager.cc b/src/lib/job_manager.cc index 9fcd86f2d..86230db2b 100644 --- a/src/lib/job_manager.cc +++ b/src/lib/job_manager.cc @@ -272,7 +272,7 @@ JobManager::analyse_subtitles ( for (auto i: _jobs) { auto a = dynamic_pointer_cast<AnalyseSubtitlesJob> (i); - if (a && a->path() == film->subtitle_analysis_path(content)) { + if (a && a->path() == film->subtitle_analysis_path(content) && !i->finished_cancelled()) { i->when_finished (connection, ready); return; } |
