1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-08-31 16:21:49 +00:00

Check that stratum is already active in initiate_stratum to avoid de-authorising ourselves by subscribing again.

This commit is contained in:
Con Kolivas 2012-09-29 17:06:48 +10:00
parent fab9ff3cb7
commit aa6aa29c4d

3
util.c
View File

@ -1170,6 +1170,9 @@ bool initiate_stratum(struct pool *pool)
json_error_t err;
bool ret = false;
if (pool->stratum_active)
return true;
s = alloca(RECVSIZE);
sprintf(s, "{\"id\": %d, \"method\": \"mining.subscribe\", \"params\": []}", swork_id++);