0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-27 07:54:05 +01:00

ircd::ctx: Move this branch condition.

This commit is contained in:
Jason Volk 2018-08-17 21:31:54 -07:00
parent ebd8539ce1
commit 141f4e1c0a

View file

@ -325,12 +325,12 @@ ircd::ctx::terminate(ctx &ctx)
void void
ircd::ctx::interrupt(ctx &ctx) ircd::ctx::interrupt(ctx &ctx)
{ {
if(finished(ctx))
return;
if(unlikely(ircd::runlevel == runlevel::QUIT)) if(unlikely(ircd::runlevel == runlevel::QUIT))
return terminate(ctx); return terminate(ctx);
if(finished(ctx))
return;
if(interruption(ctx)) if(interruption(ctx))
return; return;