mirror of
https://github.com/matrix-construct/construct
synced 2024-11-17 15:30:52 +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;
|
delete this;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Check for a precocious interrupt
|
||||||
|
if(unlikely(flags & context::INTERRUPTED))
|
||||||
|
return;
|
||||||
|
|
||||||
if(likely(bool(func)))
|
if(likely(bool(func)))
|
||||||
func();
|
func();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue