Skip to content

Commit

Permalink
[log_files] remove callback after get_entries
Browse files Browse the repository at this point in the history
  • Loading branch information
dakejahl committed Mar 23, 2024
1 parent 06a13b1 commit cdc77a6
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 cdc77a6

Please sign in to comment.