From 10bb3517363462694bb8365df9be662aa589eaa2 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Tue, 23 Sep 2014 09:05:29 +1000 Subject: [PATCH] Avoid updating diff until there is a current work base --- src/stratifier.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/stratifier.c b/src/stratifier.c index 2b68309b..cbdc24f2 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -872,6 +872,11 @@ static void update_diff(ckpool_t *ckp) json_t *val; char *buf; + if (unlikely(!current_workbase)) { + LOGINFO("No current workbase to update diff yet"); + return; + } + buf = send_recv_proc(ckp->generator, "getdiff"); if (unlikely(!buf)) { LOGWARNING("Failed to get diff from generator in update_diff");