0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-29 20:28:52 +02:00

ircd::ctx: Fix bug where interrupts are lost before context spawns.

This commit is contained in:
Jason Volk 2017-03-24 15:46:41 -07:00
parent 31dd925b17
commit d9521c4dc0

View file

@ -115,6 +115,10 @@ noexcept
delete this;
});
// Check for a precocious interrupt
if(unlikely(flags & context::INTERRUPTED))
return;
if(likely(bool(func)))
func();
}