Browse Source

Don't make rolled work from the longpoll be seen as other longpoll work items.

Con Kolivas 14 years ago
parent
commit
af7368daca
1 changed files with 1 additions and 0 deletions
  1. 1 0
      cgminer.c

+ 1 - 0
cgminer.c

@@ -3503,6 +3503,7 @@ static void convert_to_work(json_t *val, bool rolltime, struct pool *pool)
 	memcpy(work_clone, work, sizeof(struct work));
 	memcpy(work_clone, work, sizeof(struct work));
 	while (reuse_work(work)) {
 	while (reuse_work(work)) {
 		work_clone->clone = true;
 		work_clone->clone = true;
+		work_clone->longpoll = false;
 		applog(LOG_DEBUG, "Pushing rolled converted work to stage thread");
 		applog(LOG_DEBUG, "Pushing rolled converted work to stage thread");
 		if (unlikely(!stage_work(work_clone)))
 		if (unlikely(!stage_work(work_clone)))
 			break;
 			break;