0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-27 11:18:51 +02:00

ircd: Gracefully ignore termination propagated from ircd::main().

This commit is contained in:
Jason Volk 2018-12-15 17:13:35 -08:00
parent a2a66eb314
commit 9f458938db

View file

@ -237,18 +237,29 @@ noexcept try
// executes backwards from this point and shuts down IRCd.
ctx::wait();
}
catch(const m::error &e)
catch(const http::error &e) // <-- m::error
{
log::critical
{
"IRCd main exited :%s %s", e.what(), e.content
"IRCd main :%s %s", e.what(), e.content
};
}
catch(const std::exception &e)
{
log::critical
{
"IRCd main :%s", e.what()
};
}
catch(const ctx::terminated &)
{
return;
}
catch(...)
{
log::critical
{
"IRCd main exited :%s", what(std::current_exception())
"IRCd main error."
};
}