Application::Exit(EXIT_FAILURE);
}
}
+}
+void ApiListener::OnAllConfigLoaded(void)
+{
if (!Endpoint::GetByName(GetIdentity())) {
Log(LogCritical, "ApiListener")
<< "Endpoint object for '" << GetIdentity() << "' is missing.";
Application::Exit(EXIT_FAILURE);
}
-
- SyncZoneDirs();
}
/**
*/
void ApiListener::Start(void)
{
+ SyncZoneDirs();
+
if (std::distance(DynamicType::GetObjectsByType<ApiListener>().first, DynamicType::GetObjectsByType<ApiListener>().second) > 1) {
Log(LogCritical, "ApiListener", "Only one ApiListener object is allowed.");
return;