Browse Source

Check enough work is queued before queueing more in avalon_fill.

nfactor-troky
Con Kolivas 12 years ago
parent
commit
23fa953bfc
  1. 2
      driver-avalon.c

2
driver-avalon.c

@ -768,6 +768,8 @@ static bool avalon_fill(struct cgpu_info *avalon)
if (unlikely(!work)) if (unlikely(!work))
return false; return false;
if (avalon->queued == avalon_info[avalon->device_id]->miner_count)
return true;
avalon->works[avalon->queued++] = work; avalon->works[avalon->queued++] = work;
if (avalon->queued == avalon_info[avalon->device_id]->miner_count) if (avalon->queued == avalon_info[avalon->device_id]->miner_count)
return true; return true;

Loading…
Cancel
Save