mirror of
https://github.com/matrix-construct/construct
synced 2025-03-13 21:10:32 +01:00
ircd: Simplify runlevels on shutdown.
This commit is contained in:
parent
e8e8d282b2
commit
ff050ae7b0
1 changed files with 2 additions and 9 deletions
11
ircd/ircd.cc
11
ircd/ircd.cc
|
@ -205,19 +205,12 @@ noexcept try
|
|||
_client_.wait();
|
||||
}};
|
||||
|
||||
// When the call to wait() below completes, IRCd exits from the RUN state
|
||||
// and enters one of the two states below depending on whether the unwind
|
||||
// is taking place normally or because of an exception.
|
||||
const unwind::nominal nominal
|
||||
// When the call to wait() below completes, IRCd exits from the RUN state.
|
||||
const unwind nominal
|
||||
{
|
||||
std::bind(&ircd::set_runlevel, runlevel::QUIT)
|
||||
};
|
||||
|
||||
const unwind::exceptional exceptional
|
||||
{
|
||||
std::bind(&ircd::set_runlevel, runlevel::FAULT)
|
||||
};
|
||||
|
||||
// IRCd will now transition to the RUN state indicating full functionality.
|
||||
ircd::set_runlevel(runlevel::RUN);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue