From 0412ac7c21811132f57fb8fa0de55702140d9898 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Fri, 24 Feb 2012 14:03:04 +1100 Subject: [PATCH] Only send out extra longpoll requests if we want longpolls. --- cgminer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cgminer.c b/cgminer.c index 2c4310e6..37c91af4 100644 --- a/cgminer.c +++ b/cgminer.c @@ -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; }