Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Jenny Ryan
ouinet
Commits
e2b66860
Commit
e2b66860
authored
Dec 04, 2020
by
Ivan Vilata-i-Balaguer
Browse files
Use lambda to connect call to cancel signal.
parent
6741cd04
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/cache/multi_peer_reader.cpp
View file @
e2b66860
...
...
@@ -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
]);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment