diff --git a/app/task/conform/conform.cpp b/app/task/conform/conform.cpp index 6be547d10..2350f5f19 100644 --- a/app/task/conform/conform.cpp +++ b/app/task/conform/conform.cpp @@ -42,9 +42,7 @@ void ConformTask::Action() connect(decoder.get(), &Decoder::IndexProgress, this, &ConformTask::ProgressChanged); - decoder->Open(); decoder->Conform(params_, &IsCancelled()); - decoder->Close(); emit Succeeded(); } diff --git a/app/task/index/index.cpp b/app/task/index/index.cpp index 248901a73..0fb6393b7 100644 --- a/app/task/index/index.cpp +++ b/app/task/index/index.cpp @@ -42,9 +42,7 @@ void IndexTask::Action() connect(decoder.get(), &Decoder::IndexProgress, this, &IndexTask::ProgressChanged); - decoder->Open(); decoder->Index(&IsCancelled()); - decoder->Close(); emit Succeeded(); }