From 11cc87393a6a18d85ba195c8272f14dd00487b48 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Mon, 23 Feb 2015 20:51:33 +1100 Subject: [PATCH] Reconnect instead of testing clients that have their reconnect flag set on a stratum broadcast --- src/stratifier.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/stratifier.c b/src/stratifier.c index e66ee30c..9172cf5e 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -1814,10 +1814,14 @@ static void stratum_broadcast(sdata_t *sdata, json_t *val) } /* Look for clients that may have been dropped which the stratifer has * not been informed about and ask the connector of they still exist */ - if (client->dropped || client->reconnect) { + if (client->dropped) { connector_test_client(ckp, client->id); continue; } + if (client->reconnect) { + reconnect_client(ckp_sdata, client); + continue; + } if (!client_active(client)) continue;