mirror of
https://gitee.com/fasiondog/hikyuu.git
synced 2024-12-02 03:48:19 +08:00
fixed SpotAgent start
This commit is contained in:
parent
8ab3c94c58
commit
b6cda36dee
@ -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(); });
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user