1
0
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:
MoneroOcean
2018-10-11 15:51:36 +02:00
parent 4cb8bc4dde
commit c9907eb617

View File

@@ -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)