#include "traffcounter_impl.h"
#include "settings_impl.h"
#include "pidfile.h"
+#include "async_pool.h"
#include "eventloop.h"
#include "stg_timer.h"
return -1;
}
- auto& loop = EVENT_LOOP_SINGLETON::GetInstance();
+ auto& loop = EVENT_LOOP::instance();
+ STG::AsyncPoolST::start();
StoreLoader storeLoader(settings);
if (storeLoader.load())
AdminsImpl admins(store);
TariffsImpl tariffs(&store);
+ tariffs.ReadTariffs();
ServicesImpl services(&store);
CorporationsImpl corps(&store);
UsersImpl users(&settings, &store, &tariffs, services, admins.sysAdmin());
manager.stop();
+ STG::AsyncPoolST::stop();
if (loop.Stop())
WriteServLog("Event loop not stopped.");