mirror of
https://github.com/jwinterm/nodejs-pool.git
synced 2026-10-17 05:21:27 +02:00
Don't clear the worker list the first time though...
This commit is contained in:
@@ -123,11 +123,9 @@ function messageHandler(message) {
|
||||
process.on('message', messageHandler);
|
||||
|
||||
function sendToWorkers(data) {
|
||||
let goodWorkers = [];
|
||||
workerList.forEach(function (worker) {
|
||||
worker.send(data);
|
||||
});
|
||||
workerList = goodWorkers;
|
||||
}
|
||||
|
||||
function retargetMiners() {
|
||||
|
||||
Reference in New Issue
Block a user