Skip to content

Commit

Permalink
* order
Browse files Browse the repository at this point in the history
  • Loading branch information
Tristan Walter committed Mar 5, 2025
1 parent 1ae2139 commit b8b5bb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Application/src/tracker/tracking/VisualIdentification.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,6 @@ std::optional<std::set<track::vi::VIWeights>> VINetwork::get_available_weights()
guard.unlock();

py::schedule(PackagedTask{
._can_run_before_init = false,
._network = &ptr->_network,
._task = PromisedTask([promise = std::move(promise)]() mutable {
try {
Expand Down Expand Up @@ -385,7 +384,8 @@ std::optional<std::set<track::vi::VIWeights>> VINetwork::get_available_weights()
} catch(...) {
promise.set_exception(std::current_exception());
}
})
}),
._can_run_before_init = false
});

if(not future.valid()) {
Expand Down

0 comments on commit b8b5bb3

Please sign in to comment.