0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-17 23:40:57 +01: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; delete this;
}); });
// Check for a precocious interrupt
if(unlikely(flags & context::INTERRUPTED))
return;
if(likely(bool(func))) if(likely(bool(func)))
func(); func();
} }