fix finished tasks deallocated on pop
This commit is contained in:
parent
7d938f8b7f
commit
e7e2028750
1 changed files with 1 additions and 1 deletions
|
|
@ -120,7 +120,7 @@ std::unique_ptr<OutputType> TaskInterface::pop_finished(bool& empty) {
|
|||
std::unique_ptr<OutputType> task;
|
||||
|
||||
if (!(empty = this->finished_queue.empty())) {
|
||||
auto task = std::move(this->finished_queue.front());
|
||||
task = std::move(this->finished_queue.front());
|
||||
this->finished_queue.pop();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue