Commit 3ebb382d authored by aligungr's avatar aligungr

Performance improvements

parent 4b1a40a3
......@@ -28,7 +28,7 @@ RlsUdpTask::RlsUdpTask(TaskBase *base, RlsSharedContext *shCtx)
{
m_logger = base->logBase->makeUniqueLogger(base->config->getLoggerPrefix() + "rls-udp");
m_server = new udp::UdpServerTask(this);
m_server = std::make_unique<udp::UdpServerTask>(this);
for (auto &ip : base->config->gnbSearchList)
m_searchSpace.emplace_back(ip, cons::RadioLinkPort);
......@@ -69,7 +69,6 @@ void RlsUdpTask::onLoop()
void RlsUdpTask::onQuit()
{
m_server->quit();
delete m_server;
}
void RlsUdpTask::sendRlsPdu(const InetAddress &addr, const rls::RlsMessage &msg)
......
......@@ -35,7 +35,7 @@ class RlsUdpTask : public NtsTask
private:
TaskBase *m_base;
std::unique_ptr<Logger> m_logger;
udp::UdpServerTask *m_server;
std::unique_ptr<udp::UdpServerTask> m_server;
RlsSharedContext *m_shCtx;
std::vector<InetAddress> m_searchSpace;
std::unordered_map<uint64_t, CellInfo> m_cells;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment