0
0
Fork 0
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:
Jason Volk 2018-08-17 11:07:31 -07:00
parent e8e8d282b2
commit ff050ae7b0

View file

@ -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);