lib/nfs/Connection: fix -Wunused-lambda-capture
This commit is contained in:
parent
f0ac0c19b7
commit
dcde2a0bae
|
@ -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);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue