Browse Source

Don't bother storing the session of clients without a user set up or not authorised

master
Con Kolivas 10 years ago
parent
commit
3ea6fa5dfe
  1. 2
      src/stratifier.c

2
src/stratifier.c

@ -978,7 +978,7 @@ static void __disconnect_session(sdata_t *sdata, const stratum_instance_t *clien
} }
} }
if (!client->enonce1_64) if (!client->enonce1_64 || !client->user_instance || !client->authorised)
return; return;
HASH_FIND_INT(sdata->disconnected_sessions, &client->session_id, session); HASH_FIND_INT(sdata->disconnected_sessions, &client->session_id, session);
if (session) if (session)

Loading…
Cancel
Save