add archive_expires_after option
This commit is contained in:
committed by
mathieui
parent
4de88b5160
commit
6ed185a8a5
@@ -14,6 +14,7 @@
|
||||
#include <csignal>
|
||||
|
||||
#include <identd/identd_server.hpp>
|
||||
#include <scheduler/scheduler.hpp>
|
||||
|
||||
// A flag set by the SIGINT signal handler.
|
||||
static std::atomic<bool> stop(false);
|
||||
@@ -107,6 +108,7 @@ static int main_loop(std::string hostname, std::string password)
|
||||
if (Config::get_int("identd_port", 113) != 0)
|
||||
identd = std::make_unique<IdentdServer>(*xmpp_component, p, static_cast<uint16_t>(Config::get_int("identd_port", 113)));
|
||||
|
||||
Scheduler::start_scheduler();
|
||||
auto timeout = TimedEventsManager::instance().get_timeout();
|
||||
while (p->poll(timeout) != -1)
|
||||
{
|
||||
@@ -130,6 +132,7 @@ static int main_loop(std::string hostname, std::string password)
|
||||
#endif
|
||||
if (identd)
|
||||
identd->shutdown();
|
||||
Scheduler::stop_scheduler();
|
||||
// Cancel the timer for a potential reconnection
|
||||
TimedEventsManager::instance().cancel("XMPP reconnection");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user