#include "inetaccess.h"
#include "stg/common.h"
-#include "stg/locker.h"
#include "stg/tariff.h"
#include "stg/settings.h"
stgSettings(NULL),
listenSocket(-1),
enabledDirs(0xFFffFFff),
- onDelUserNotifier(*this),
logger(STG::PluginLogger::get("auth_ia"))
{
InitContext("pr7Hhen", 7, &ctxS);
//-----------------------------------------------------------------------------
int AUTH_IA::Start()
{
-users->AddNotifierUserDel(&onDelUserNotifier);
+m_onDelUserConn = users->onDel([this](auto user){ DelUser(user); });
if (PrepareNet())
- {
return -1;
- }
if (!m_thread.joinable())
m_thread = std::jthread([this](auto token){ Run(std::move(token)); });
}
}
-users->DelNotifierUserDel(&onDelUserNotifier);
+m_onDelUserConn.disconnect();
if (isRunningRun)
m_thread.detach();