From 395d1277a7248596faaed573d0befcfc1483e5af Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sun, 15 Feb 2015 11:50:13 +1100 Subject: [PATCH] Set notify_id on all proxies in case we switch later to them with setproxy --- src/stratifier.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/stratifier.c b/src/stratifier.c index 6a230a83..40d4a8ca 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -1279,12 +1279,12 @@ static void update_notify(ckpool_t *ckp, const char *cmd) add_base(ckp, dsdata, wb, &new_block); - if (parent_proxy(proxy) && proxy->notify_id == -1) { + if (proxy->notify_id == -1) { /* This is the first notification from the current proxy, tell * clients now to reconnect since we have enough information to * switch. */ proxy->notify_id = wb->id; - if (proxy == current_proxy(sdata)) + if (parent_proxy(proxy) && proxy == current_proxy(sdata)) reconnect_clients(sdata, proxy->id, proxy->notify_id); } LOGINFO("Broadcast updated stratum notify");