mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-24 21:32:47 -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_paused = 0;
|
||||
|
||||
std::vector<Handle*> old_workers = m_workers;
|
||||
m_workers.clear();
|
||||
|
||||
for (Handle *handle : old_workers) {
|
||||
for (Handle *handle : m_workers) {
|
||||
handle->join();
|
||||
delete handle;
|
||||
}
|
||||
|
||||
m_workers.clear();
|
||||
}
|
||||
|
||||
// setups workers based on specified algorithm (or its basic perf algo more specifically)
|
||||
|
||||
Reference in New Issue
Block a user