mirror of
https://github.com/matrix-construct/construct
synced 2024-12-26 15:33:54 +01:00
ircd::ctx: Zero the interruption flag before the throw to user handler.
This commit is contained in:
parent
f0a9f8bdc4
commit
e3f3543d65
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue