From ddf7703e92a7836f745efb53abbd3381611de269 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Wed, 18 Jun 2014 00:32:48 +1000 Subject: [PATCH] Add workaround for fast connecting miners --- src/stratifier.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/stratifier.c b/src/stratifier.c index f497318b..995ef364 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -1076,6 +1076,9 @@ static json_t *parse_subscribe(int client_id, json_t *params_val) return NULL; } + if (unlikely(!current_workbase)) + return json_string("Initialising"); + arr_size = json_array_size(params_val); if (arr_size > 0) { const char *buf;