1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-23 13:04:29 +00:00

Set pool on work retrieved from longpoll.

This commit is contained in:
Con Kolivas 2011-07-19 10:32:24 +10:00
parent 048bea201f
commit 529aa70c38

1
main.c
View File

@ -1970,6 +1970,7 @@ static void convert_to_work(json_t *val)
applog(LOG_ERR, "Could not convert longpoll data to work");
return;
}
work->pool = current_pool();
if (unlikely(!tq_push(thr_info[stage_thr_id].q, work)))
applog(LOG_ERR, "Could not tq_push work in convert_to_work");