From 693cd317ffdfb55b74aa7630ca352d18f3a0533e Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Tue, 23 Apr 2019 18:32:50 -0700 Subject: [PATCH] ircd::ctx: Fix the sentinel iterator value for when_any() to last (end) not first. --- include/ircd/ctx/when.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/ircd/ctx/when.h b/include/ircd/ctx/when.h index 988b654d8..404f041ac 100644 --- a/include/ircd/ctx/when.h +++ b/include/ircd/ctx/when.h @@ -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; }