X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/646c8fd6c0112573ba2aae7f165f5d48e849831e..43ac308ea20014761481bc40525496a0bb1d9740:/projects/stargazer/main.cpp?ds=inline diff --git a/projects/stargazer/main.cpp b/projects/stargazer/main.cpp index 3ee229c2..ee14c3a8 100644 --- a/projects/stargazer/main.cpp +++ b/projects/stargazer/main.cpp @@ -30,7 +30,6 @@ #include "settings_impl.h" #include "pidfile.h" #include "async_pool.h" -#include "eventloop.h" #include "stg_timer.h" #include "stg/user.h" @@ -283,7 +282,6 @@ int main(int argc, char* argv[]) return -1; } - auto& loop = EVENT_LOOP::instance(); STG::AsyncPoolST::start(); StoreLoader storeLoader(settings); @@ -294,13 +292,6 @@ int main(int argc, char* argv[]) 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()); @@ -380,8 +371,6 @@ int main(int argc, char* argv[]) manager.stop(); STG::AsyncPoolST::stop(); - if (loop.Stop()) - WriteServLog("Event loop not stopped."); if (!traffCnt.Stop()) WriteServLog("Traffcounter: Stop successfull.");