mirror of
https://github.com/matrix-construct/construct
synced 2024-11-26 00:32:35 +01:00
ircd: Remove internal main_exit callback.
This commit is contained in:
parent
e2edd13a33
commit
712b343017
1 changed files with 0 additions and 13 deletions
13
ircd/ircd.cc
13
ircd/ircd.cc
|
@ -23,7 +23,6 @@ namespace ircd
|
|||
ctx::ctx *main_context; // Main program loop
|
||||
|
||||
void set_runlevel(const enum runlevel &);
|
||||
void at_main_exit() noexcept;
|
||||
void main() noexcept;
|
||||
}
|
||||
|
||||
|
@ -175,7 +174,6 @@ noexcept try
|
|||
// transitions to HALT.
|
||||
const unwind halted{[]
|
||||
{
|
||||
at_main_exit();
|
||||
set_runlevel(runlevel::HALT);
|
||||
}};
|
||||
|
||||
|
@ -238,17 +236,6 @@ catch(...)
|
|||
};
|
||||
}
|
||||
|
||||
void
|
||||
ircd::at_main_exit()
|
||||
noexcept
|
||||
{
|
||||
strand->post([]
|
||||
{
|
||||
delete strand;
|
||||
strand = nullptr;
|
||||
});
|
||||
}
|
||||
|
||||
/// IRCd uptime in seconds
|
||||
ircd::seconds
|
||||
ircd::uptime()
|
||||
|
|
Loading…
Reference in a new issue