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,6 +106,7 @@ try
|
|||
|
||||
// Wait for any pending runlevel transition to complete before
|
||||
// continuing with another transition.
|
||||
if(ctx::current)
|
||||
changed::dock.wait([]
|
||||
{
|
||||
return level == chadburn;
|
||||
|
|
Loading…
Reference in a new issue