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

Only send out extra longpoll requests if we want longpolls.

This commit is contained in:
Con Kolivas 2012-02-24 14:03:04 +11:00
parent 47747dc8a2
commit de944dfd17

View File

@ -1630,8 +1630,8 @@ static bool get_upstream_work(struct work *work, bool lagging)
/* If this is the current pool and supports longpoll but has not sent
* a longpoll, send one now */
if (unlikely(!pool->is_lp && pool == current_pool() && pool->hdr_path &&
!pool_tset(pool, &pool->lp_sent))) {
if (unlikely(want_longpoll && !pool->is_lp && pool == current_pool() &&
pool->hdr_path && !pool_tset(pool, &pool->lp_sent))) {
req_longpoll = true;
url = pool->lp_url;
}