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:
parent
a2a66eb314
commit
9f458938db
1 changed files with 14 additions and 3 deletions
17
ircd/ircd.cc
17
ircd/ircd.cc
|
@ -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."
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue