mirror of
https://github.com/matrix-construct/construct
synced 2024-11-13 21:41:06 +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,6 +106,7 @@ 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.
|
||||||
|
if(ctx::current)
|
||||||
changed::dock.wait([]
|
changed::dock.wait([]
|
||||||
{
|
{
|
||||||
return level == chadburn;
|
return level == chadburn;
|
||||||
|
|
Loading…
Reference in a new issue