Skip to content

Commit

Permalink
Merge pull request #2254 from dakejahl/pr-fix_callback
Browse files Browse the repository at this point in the history
[log_files] remove callback after get_entries
  • Loading branch information
julianoes authored Mar 23, 2024
2 parents 06a13b1 + cdc77a6 commit 099164e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/mavsdk/plugins/log_files/log_files_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,11 @@ std::pair<LogFiles::Result, std::vector<LogFiles::Entry>> LogFilesImpl::get_entr
prom->set_value(std::make_pair<>(result, entries));
});

return future_result.get();
auto result = future_result.get();

_entries_user_callback = nullptr;

return result;
}

void LogFilesImpl::get_entries_async(LogFiles::GetEntriesCallback callback)
Expand Down

0 comments on commit 099164e

Please sign in to comment.