From 31dd925b172a58f86561964ad864ab6f4f4394e7 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Fri, 24 Mar 2017 15:45:35 -0700 Subject: [PATCH] ircd::ctx: Mark the profiling leave time directly after the user finishes. --- ircd/ctx.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ircd/ctx.cc b/ircd/ctx.cc index d5c8f564b..8913c8034 100644 --- a/ircd/ctx.cc +++ b/ircd/ctx.cc @@ -103,10 +103,11 @@ noexcept const scope atexit([this] { + mark(prof::event::CUR_LEAVE); + if(adjoindre) notify(*adjoindre); - mark(prof::event::CUR_LEAVE); ircd::ctx::current = nullptr; this->yc = nullptr;