From ad63088be8501d2bc4acf5bced8d097615bdc7a2 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Tue, 16 May 2017 08:33:33 +1000 Subject: [PATCH] Check for current workbase as well. --- src/stratifier.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/stratifier.c b/src/stratifier.c index 77c5a79e..d43b75db 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -1415,7 +1415,8 @@ static void block_update(ckpool_t *ckp, int *prio) /* Skip update if we're getting stacked low priority updates too close * together. */ - if (*prio < GEN_PRIORITY && time(NULL) < sdata->update_time + (ckp->update_interval / 2)) { + if (*prio < GEN_PRIORITY && time(NULL) < sdata->update_time + (ckp->update_interval / 2) && + sdata->current_workbase) { ret = true; goto out; }