Commit 86e94edb890f65af4d93125c66e5b90672641c42

Con Kolivas 2012-04-27T15:47:21

Set have_longpoll to true when there is at least one pool with longpoll.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/cgminer.c b/cgminer.c
index 5e070fb..d5de1c9 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -3890,6 +3890,9 @@ retry_pool:
 		}
 	}
 
+	/* Any longpoll from any pool is enough for this to be true */
+	have_longpoll = true;
+
 	if (cp == pool)
 		applog(LOG_WARNING, "Long-polling activated for %s", pool->lp_url);
 	else