Commit a6b97327e11ac23df2d02afc2721a351c09e7937

Con Kolivas 2012-08-16T00:09:50

Artificially set the pool lagging flag on work restart to avoid messages about slow pools after every longpoll.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff --git a/cgminer.c b/cgminer.c
index a71f3dd..85a916d 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -2753,8 +2753,13 @@ int restart_wait(unsigned int mstime)
 	
 static void restart_threads(void)
 {
+	struct pool *cp = current_pool();
 	int i;
 
+	/* Artificially set the lagging flag to avoid pool not providing work
+	 * fast enough  messages after every long poll */
+	pool_tset(cp, &cp->lagging);
+
 	/* Discard staged work that is now stale */
 	discard_stale();