Fix for ReplyAdapter in TaskRunner

This commit is contained in:
Attila Uygun 2023-06-12 00:35:57 +02:00
parent ab4c0c7e57
commit fdbbb2a6fd
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ void ReturnAsParamAdapter(std::function<ReturnType()> func,
template <typename ReturnType>
void ReplyAdapter(std::function<void(ReturnType)> callback,
ReturnType* result) {
callback(*result);
callback(std::move(*result));
delete result;
}