Browse Source

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

port-ckolivas
Con Kolivas 11 years ago committed by Noel Maersk
parent
commit
d5d34f2168
  1. 5
      sgminer.c

5
sgminer.c

@ -6332,11 +6332,10 @@ struct work *get_queued(struct cgpu_info *cgpu) @@ -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;

Loading…
Cancel
Save