mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-24 21:44:38 +00:00
Check enough work is queued before queueing more in avalon_fill.
This commit is contained in:
parent
f0806c6828
commit
23fa953bfc
@ -768,6 +768,8 @@ static bool avalon_fill(struct cgpu_info *avalon)
|
||||
|
||||
if (unlikely(!work))
|
||||
return false;
|
||||
if (avalon->queued == avalon_info[avalon->device_id]->miner_count)
|
||||
return true;
|
||||
avalon->works[avalon->queued++] = work;
|
||||
if (avalon->queued == avalon_info[avalon->device_id]->miner_count)
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user