mirror of
https://github.com/matrix-construct/construct
synced 2025-01-14 00:34:18 +01:00
ircd::ctx: Fix bug where interrupts are lost before context spawns.
This commit is contained in:
parent
31dd925b17
commit
d9521c4dc0
1 changed files with 4 additions and 0 deletions
|
@ -115,6 +115,10 @@ noexcept
|
|||
delete this;
|
||||
});
|
||||
|
||||
// Check for a precocious interrupt
|
||||
if(unlikely(flags & context::INTERRUPTED))
|
||||
return;
|
||||
|
||||
if(likely(bool(func)))
|
||||
func();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue