mirror of
https://github.com/matrix-construct/construct
synced 2024-06-02 10:08:56 +02:00
ircd: Wait on the runlevel changed dock in ircd::main().
This commit is contained in:
parent
a6a8fa7d1b
commit
87210d4856
|
@ -251,11 +251,12 @@ noexcept try
|
|||
// This call blocks until the main context is notified or interrupted etc.
|
||||
// Waiting here will hold open this stack with all of the above objects
|
||||
// living on it.
|
||||
ctx::wait();
|
||||
run::changed::dock.wait([]
|
||||
{
|
||||
return !main_context;
|
||||
});
|
||||
|
||||
// Once this call completes this main stack unwinds from this point and
|
||||
// shuts down IRCd.
|
||||
run::set(run::level::QUIT);
|
||||
ircd::run::set(run::level::QUIT);
|
||||
}
|
||||
catch(const http::error &e) // <-- m::error
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue