Skip to content

Commit

Permalink
try fix
Browse files Browse the repository at this point in the history
Signed-off-by: Julian Oes <[email protected]>
  • Loading branch information
julianoes committed Oct 25, 2023
1 parent 40c5a1b commit e58d947
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/mavsdk/core/mavlink_ftp_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1076,8 +1076,10 @@ MavlinkFtpClient::rename(const std::string& from_path, const std::string& to_pat
std::promise<ClientResult> prom;
auto fut = prom.get_future();

rename_async(
from_path, to_path, [&prom](const ClientResult result) { prom.set_value(result); });
rename_async(from_path, to_path, [&](const ClientResult result) {
(void)this;
prom.set_value(result);
});

return fut.get();
}
Expand Down

0 comments on commit e58d947

Please sign in to comment.