Browse Source

Only allow one connected instance per enonce1

master
Con Kolivas 11 years ago
parent
commit
0e68d49b40
  1. 2
      src/stratifier.c

2
src/stratifier.c

@ -429,6 +429,8 @@ static bool sessionid_exists(const char *sessionid, int id)
if (instance->id == id) if (instance->id == id)
continue; continue;
if (instance->enonce1_64 == session64) { if (instance->enonce1_64 == session64) {
/* Only allow one connected instance per enonce1 */
if (instance->disconnected)
ret = true; ret = true;
break; break;
} }

Loading…
Cancel
Save