Browse Source

Merge commit 'a6b9732' into bfgminer

Conflicts:
	miner.c
Luke Dashjr 13 years ago
parent
commit
092fe05cd2
1 changed files with 5 additions and 0 deletions
  1. 5 0
      miner.c

+ 5 - 0
miner.c

@@ -3054,9 +3054,14 @@ int stale_wait(unsigned int mstime, struct work*work, bool checkend)
 	
 static void restart_threads(void)
 {
+	struct pool *cp = current_pool();
 	int i, fd;
 	struct thr_info *thr;
 
+	/* 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();