#include "traffcounter_impl.h"
#include "settings_impl.h"
#include "pidfile.h"
-#include "eventloop.h"
+#include "async_pool.h"
#include "stg_timer.h"
#include "stg/user.h"
return -1;
}
- auto& loop = EVENT_LOOP_SINGLETON::GetInstance();
+ STG::AsyncPoolST::start();
StoreLoader storeLoader(settings);
if (storeLoader.load())
return -1;
}
- if (loop.Start())
- {
- printfd(__FILE__, "Event loop not started.\n");
- WriteServLog("Event loop not started.");
- return -1;
- }
-
auto& store = storeLoader.get();
WriteServLog("Storage plugin: %s. Loading successfull.", store.GetVersion().c_str());
manager.stop();
- if (loop.Stop())
- WriteServLog("Event loop not stopped.");
+ STG::AsyncPoolST::stop();
if (!traffCnt.Stop())
WriteServLog("Traffcounter: Stop successfull.");