0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-02 18:18:56 +02:00

ircd::ctx: Set context to NOINTERRUPT rather than clearing TERMINATED like an INTERRUPTED.

This commit is contained in:
Jason Volk 2018-12-15 17:02:50 -08:00
parent 7471bf54f4
commit 98cb7693f3

View file

@ -261,6 +261,7 @@ ircd::ctx::ctx::termination_point(std::nothrow_t)
if(flags & context::NOINTERRUPT)
return false;
flags |= context::NOINTERRUPT;
mark(prof::event::CUR_TERMINATE);
assert(flags & ~context::NOINTERRUPT);
return true;