1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-22 12:34:27 +00:00

Remove the unqueued work reference when we discard work from get queued as well.

This commit is contained in:
Con Kolivas 2014-01-31 22:01:37 +11:00 committed by Noel Maersk
parent ee7fb11cfb
commit d5d34f2168

View File

@ -6332,11 +6332,10 @@ struct work *get_queued(struct cgpu_info *cgpu)
work = NULL;
wake_gws();
goto out_unlock;
}
__add_queued(cgpu, work);
} else
__add_queued(cgpu, work);
cgpu->unqueued_work = NULL;
}
out_unlock:
wr_unlock(&cgpu->qlock);
return work;