mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-02 10:04:33 +00:00
Remove the unqueued work reference when we discard work from get queued as well.
This commit is contained in:
parent
ee7fb11cfb
commit
d5d34f2168
@ -6332,11 +6332,10 @@ struct work *get_queued(struct cgpu_info *cgpu)
|
|||||||
work = NULL;
|
work = NULL;
|
||||||
wake_gws();
|
wake_gws();
|
||||||
goto out_unlock;
|
goto out_unlock;
|
||||||
}
|
} else
|
||||||
__add_queued(cgpu, work);
|
__add_queued(cgpu, work);
|
||||||
cgpu->unqueued_work = NULL;
|
cgpu->unqueued_work = NULL;
|
||||||
}
|
}
|
||||||
out_unlock:
|
|
||||||
wr_unlock(&cgpu->qlock);
|
wr_unlock(&cgpu->qlock);
|
||||||
|
|
||||||
return work;
|
return work;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user