0
0
Fork 0
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:
Jason Volk 2019-04-23 18:32:50 -07:00
parent 7bdf88bb9e
commit 693cd317ff

View file

@ -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;
}