Don't clear the worker list the first time though...

This commit is contained in:
Alexander Blair
2017-07-01 21:42:29 -07:00
parent fb00ada16e
commit 464bb13c5b
-2
View File
@@ -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() {