diff --git a/src/stratifier.c b/src/stratifier.c index 8adb95e2..99b18242 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -1824,6 +1824,12 @@ static void stratum_broadcast(sdata_t *sdata, json_t *val) if (sdata != ckp_sdata && client->sdata != sdata) continue; + /* 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) { + connector_test_client(ckp, client->id); + continue; + } /* Test for clients that haven't authed in over a minute and drop them */ if (!client->authorised) { if (now_t > client->start_time + 60) { @@ -1832,12 +1838,6 @@ static void stratum_broadcast(sdata_t *sdata, json_t *val) } continue; } - /* 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) { - connector_test_client(ckp, client->id); - continue; - } if (client->reconnect) { reconnect_client(ckp_sdata, client); continue;