From e3f3543d650605c436323d7aa11a534b1be9fdb8 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Fri, 11 Nov 2016 13:15:09 -0800 Subject: [PATCH] ircd::ctx: Zero the interruption flag before the throw to user handler. --- include/ircd/ctx/ctx.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/ircd/ctx/ctx.h b/include/ircd/ctx/ctx.h index 57100983e..1d87998ba 100644 --- a/include/ircd/ctx/ctx.h +++ b/include/ircd/ctx/ctx.h @@ -136,6 +136,7 @@ ctx::wait() if(unlikely(flags & INTERRUPTED)) { mark(prof::event::CUR_INTERRUPT); + flags &= ~INTERRUPTED; throw interrupted("ctx(%p)::wait()", (const void *)this); }