0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-25 23:14:13 +01:00

ircd::ctx: Zero the interruption flag before the throw to user handler.

This commit is contained in:
Jason Volk 2016-11-11 13:15:09 -08:00
parent f0a9f8bdc4
commit e3f3543d65

View file

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