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:
parent
abfb106125
commit
eb4fdfd036
1 changed files with 5 additions and 4 deletions
|
@ -106,10 +106,11 @@ try
|
||||||
|
|
||||||
// Wait for any pending runlevel transition to complete before
|
// Wait for any pending runlevel transition to complete before
|
||||||
// continuing with another transition.
|
// continuing with another transition.
|
||||||
changed::dock.wait([]
|
if(ctx::current)
|
||||||
{
|
changed::dock.wait([]
|
||||||
return level == chadburn;
|
{
|
||||||
});
|
return level == chadburn;
|
||||||
|
});
|
||||||
|
|
||||||
// Ignore any redundant calls which made it this far.
|
// Ignore any redundant calls which made it this far.
|
||||||
if(level == new_level)
|
if(level == new_level)
|
||||||
|
|
Loading…
Reference in a new issue