Commit e2b66860 authored by Ivan Vilata-i-Balaguer's avatar Ivan Vilata-i-Balaguer
Browse files

Use lambda to connect call to cancel signal.

parent 6741cd04
......@@ -567,7 +567,7 @@ MultiPeerReader::async_read_part_impl(Cancel& cancel, asio::yield_context yield)
sys::error_code ec;
auto lc = _lifetime_cancel.connect(cancel);
auto lc = _lifetime_cancel.connect([&] { cancel(); });
if (!_reference_hash_list) {
auto hl = _peers->choose_reference_hash_list(cancel, yield[ec]);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment