Browse Source

Reconnect instead of testing clients that have their reconnect flag set on a stratum broadcast

master
Con Kolivas 10 years ago
parent
commit
11cc87393a
  1. 6
      src/stratifier.c

6
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 /* Look for clients that may have been dropped which the stratifer has
* not been informed about and ask the connector of they still exist */ * 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); connector_test_client(ckp, client->id);
continue; continue;
} }
if (client->reconnect) {
reconnect_client(ckp_sdata, client);
continue;
}
if (!client_active(client)) if (!client_active(client))
continue; continue;

Loading…
Cancel
Save