fixed SpotAgent start

This commit is contained in:
fasiondog 2024-09-02 12:48:24 +08:00
parent 8ab3c94c58
commit b6cda36dee

View File

@ -37,10 +37,7 @@ void SpotAgent::start() {
stop();
if (m_stop) {
m_stop = false;
if (m_tg) {
m_tg.reset();
m_tg = std::make_unique<ThreadPool>(m_work_num);
}
m_tg = std::make_unique<ThreadPool>(m_work_num);
m_receiveThread = std::thread([this]() { work_thread(); });
}
}