From a6b97327e11ac23df2d02afc2721a351c09e7937 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Thu, 16 Aug 2012 00:09:50 +1000 Subject: [PATCH] Artificially set the pool lagging flag on work restart to avoid messages about slow pools after every longpoll. --- cgminer.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cgminer.c b/cgminer.c index a71f3dd3..85a916d3 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();