Only update stats on authorised clients

This commit is contained in:
Con Kolivas 2014-07-26 14:41:09 +10:00
parent 0efd35a8f2
commit a8eb9357ee

View File

@ -2163,6 +2163,9 @@ static void update_userstats(ckpool_t *ckp)
uint8_t cycle_mask;
int elapsed;
if (!client->authorised)
continue;
/* Send one lot of stats once the client is idle if they have submitted
* no shares in the last 10 minutes with the idle bool set. */
if (client->idle && client->notified_idle)