mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-25 13:42:54 -05:00
Some code changes
This commit is contained in:
@@ -221,13 +221,12 @@ void Workers::soft_stop() // stop current workers leaving uv stuff intact (used
|
|||||||
m_sequence = 0;
|
m_sequence = 0;
|
||||||
m_paused = 0;
|
m_paused = 0;
|
||||||
|
|
||||||
std::vector<Handle*> old_workers = m_workers;
|
for (Handle *handle : m_workers) {
|
||||||
m_workers.clear();
|
|
||||||
|
|
||||||
for (Handle *handle : old_workers) {
|
|
||||||
handle->join();
|
handle->join();
|
||||||
delete handle;
|
delete handle;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
m_workers.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
// setups workers based on specified algorithm (or its basic perf algo more specifically)
|
// setups workers based on specified algorithm (or its basic perf algo more specifically)
|
||||||
|
|||||||
Reference in New Issue
Block a user