1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-11 07:17:58 +00:00

stratum auth can be unset if we fail to authorise on subsequent calls to auth_stratum which undoes the requirement of setting it in one place so set it in pool_active.

This commit is contained in:
Con Kolivas 2012-10-10 23:07:33 +11:00
parent 80d4355737
commit 07605fad60
2 changed files with 1 additions and 2 deletions

View File

@ -4265,6 +4265,7 @@ retry_stratum:
return false;
if (!auth_stratum(pool))
return false;
pool->stratum_auth = true;
pool->idle = false;
init_stratum_thread(pool);
return true;

2
util.c
View File

@ -1205,8 +1205,6 @@ out:
if (val)
json_decref(val);
pool->stratum_auth = ret;
return ret;
}