Commit 83f7c740 authored by aligungr's avatar aligungr

Performance improvements

parent 01391ec9
......@@ -82,7 +82,7 @@ void TunTask::onStart()
{
auto *receiverArgs = new ReceiverArgs();
receiverArgs->fd = m_fd;
receiverArgs->targetTask = this;
receiverArgs->targetTask = m_base->appTask;
receiverArgs->psi = m_psi;
m_receiver =
new ScopedThread([](void *args) { ReceiverThread(reinterpret_cast<ReceiverArgs *>(args)); }, receiverArgs);
......@@ -111,10 +111,6 @@ void TunTask::onLoop()
push(NmError(GetErrorMessage("TUN device partially written")));
break;
}
case NtsMessageType::UE_TUN_TO_APP: {
m_base->appTask->push(std::move(msg));
break;
}
default:
break;
}
......
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