lib/nfs/Connection: fix -Wunused-lambda-capture

This commit is contained in:
Max Kellermann 2024-05-13 18:27:10 +02:00
parent f0ac0c19b7
commit dcde2a0bae

View File

@ -598,7 +598,7 @@ NfsConnection::BroadcastMountError(std::exception_ptr e) noexcept
assert(GetEventLoop().IsInside()); assert(GetEventLoop().IsInside());
assert(mount_state == MountState::FINISHED); assert(mount_state == MountState::FINISHED);
new_leases.clear_and_dispose([this, &e](auto *l){ new_leases.clear_and_dispose([&e](auto *l){
l->OnNfsConnectionFailed(e); l->OnNfsConnectionFailed(e);
}); });
@ -610,7 +610,7 @@ NfsConnection::BroadcastError(std::exception_ptr e) noexcept
{ {
assert(GetEventLoop().IsInside()); assert(GetEventLoop().IsInside());
active_leases.clear_and_dispose([this, &e](auto *l){ active_leases.clear_and_dispose([&e](auto *l){
l->OnNfsConnectionDisconnected(e); l->OnNfsConnectionDisconnected(e);
}); });