mirror of
https://github.com/matrix-construct/construct
synced 2024-12-28 00:14:07 +01:00
ircd::ctx: Fix the sentinel iterator value for when_any() to last (end) not first.
This commit is contained in:
parent
7bdf88bb9e
commit
693cd317ff
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ ircd::ctx::when_any(it first,
|
|||
when::set_any_then(p, first, closure);
|
||||
|
||||
if(refcount(p.state()) <= 1)
|
||||
p.set_value(first);
|
||||
p.set_value(last);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue