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

ircd::run: Condition to invoke the wait() from context only.

This commit is contained in:
Jason Volk 2020-03-19 12:21:34 -07:00
parent abfb106125
commit eb4fdfd036

View file

@ -106,10 +106,11 @@ try
// Wait for any pending runlevel transition to complete before
// continuing with another transition.
changed::dock.wait([]
{
return level == chadburn;
});
if(ctx::current)
changed::dock.wait([]
{
return level == chadburn;
});
// Ignore any redundant calls which made it this far.
if(level == new_level)